Custom Speed_dial (extension_custom.conf)

Dear All,
I am triying to implement a custome speedial using php and mysql,I have done the phpscript to get the number from database.
Now next is to create an extension in extension_custom.conf.

I have created untill here
[speeddial]
trunk_5 = SIP/pfingo
exten => s,1,AGI(fastdial.php)
exten => s,2,GotoIf($["${longnum}" == “00000000”]?3:4)
exten => s,3,Goto(9)
exten => s,4,GotoIf($["${longtype}" == “local”]?5:7)
;exten = s,5,Macro(dialout-trunk,+65${longnum})
exten => s,5,Goto(Dialplan2,${longnum},1)
exten => s,6,Goto(9)
exten => s,7,Macro(dialout-trunk,${trunk_5}/${longnum})
exten => s,8,Gotoif(${DIALSTATUS}==BUSY?10:9)
exten => s,9,Hangup
exten => s,10,Macro(dialout-trunk,${trunk_5}/${longnum})
exten => s,11,Hangup

But when i tries to call one of the speedial
they using the default from-internal context
[2013-03-13 16:21:20] VERBOSE[6804] pbx.c: – Executing [7135@from-internal:1] ResetCDR(“SIP/144-00000000”, “”) in new stack
[2013-03-13 16:21:20] VERBOSE[6804] pbx.c: – Executing [7135@from-internal:2] NoCDR(“SIP/144-00000000”, “”) in new stack
[2013-03-13 16:21:20] VERBOSE[6804] pbx.c: – Executing [7135@from-internal:3] Progress(“SIP/144-00000000”, “”) in new stack
[2013-03-13 16:21:20] VERBOSE[6804] pbx.c: – Executing [7135@from-internal:4] Wait(“SIP/144-00000000”, “1”) in new stack
[2013-03-13 16:21:21] VERBOSE[6804] pbx.c: – Executing [7135@from-internal:5] Progress(“SIP/144-00000000”, “”) in new stack
[2013-03-13 16:21:21] VERBOSE[6804] pbx.c: – Executing [7135@from-internal:6] Playback(“SIP/144-00000000”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
[2013-03-13 16:21:21] VERBOSE[6804] file.c: – <SIP/144-00000000> Playing ‘silence/1.ulaw’ (language ‘en’)
[2013-03-13 16:21:22] VERBOSE[6804] file.c: – <SIP/144-00000000> Playing ‘cannot-complete-as-dialed.gsm’ (language ‘en’)
[2013-03-13 16:21:24] VERBOSE[6804] file.c: – <SIP/144-00000000> Playing ‘check-number-dial-again.gsm’ (language ‘en’)

please help.