Spikko Provider - Incoming Route with no DID

Hi all,
I am kinda new in PBX…
I have Pbx In a Flash:
Your Linux Distribution: (Redhat CentOS release 6.2 (Final))
Your FreePBX version: (2.10.0rc1)

I got 1 extension, 1Skype incoming route and Google Voice incoming and outgoing routs.

I would like to add anther Incoming and Outgoing route for my SPIKKO number.
(Spikko number - an israeli provider, give u a mirs/cellphone number 057-xxxxxxx)

My problem with this provider: that he doesn’t pass a DID…
how can i diracet it to incoming route and outgoing route?
(btw: the israel postal code is 972)

this is my trunk settings:

Trunk Name: Spikko

PEER Details:
host=sip.spikko.com
username=XXXXXX
secret=YYYYYY
type=peer
disallow=all
allow=g729&gsm&ulaw&alaw
nat=no
port=5090
fromuser=XXXXXX
insecure=port,invite
call-limit=1
directmedia=no

USER Contex: XXXXX

USER Details:
secret=YYYYYY
type=user
username=XXXXXX
canreinvite=no
insecure=port,invite
disallow=all
allow=g729&gsm&ulaw&alaw
call-limit=2
directmedia=no

Register String:
YYYYYY:[email protected]:5090/972579483289

[ XXXX - Spikko Provider Username , YYYYY - Spikko Provider Password ]

My CLI LOG - When i trying to call my Spikko Number:

[2012-01-31 12:23:09] VERBOSE[22507] netsock2.c: == Using SIP RTP TOS bits 184
[2012-01-31 12:23:09] VERBOSE[22507] netsock2.c: == Using SIP RTP CoS mark 5
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [972579483289@from-trunk-sip-Spikko:1] Set("SIP/Spikko-00000004", "GROUP()=OUT_2") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [972579483289@from-trunk-sip-Spikko:2] Goto("SIP/Spikko-00000004", "from-trunk,972579483289,1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (from-trunk,972579483289,1)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [972579483289@from-trunk:1] Set("SIP/Spikko-00000004", "__FROM_DID=972579483289") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [972579483289@from-trunk:2] Gosub("SIP/Spikko-00000004", "app-blacklist-check,s,1()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@app-blacklist-check:1] GotoIf("SIP/Spikko-00000004", "0?blacklisted") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@app-blacklist-check:2] Set("SIP/Spikko-00000004", "CALLED_BLACKLIST=1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@app-blacklist-check:3] Return("SIP/Spikko-00000004", "") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [972579483289@from-trunk:3] Set("SIP/Spikko-00000004", "CDR(did)=972579483289") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [972579483289@from-trunk:4] ExecIf("SIP/Spikko-00000004", "0 ?Set(CALLERID(name)=972528855903)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [972579483289@from-trunk:5] Set("SIP/Spikko-00000004", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [972579483289@from-trunk:6] Set("SIP/Spikko-00000004", "CALLERPRES()=allowed_not_screened") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [972579483289@from-trunk:7] Goto("SIP/Spikko-00000004", "from-did-direct,1337,1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (from-did-direct,1337,1)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [1337@from-did-direct:1] Set("SIP/Spikko-00000004", "__RINGTIMER=15") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [1337@from-did-direct:2] Macro("SIP/Spikko-00000004", "exten-vm,1337,1337,0,0,0") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:1] Macro("SIP/Spikko-00000004", "user-callerid,") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/Spikko-00000004", "AMPUSER=972528855903") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/Spikko-00000004", "0?report") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/Spikko-00000004", "1?Set(REALCALLERIDNUM=972528855903)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/Spikko-00000004", "AMPUSER=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/Spikko-00000004", "AMPUSERCIDNAME=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/Spikko-00000004", "1?report") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-user-callerid,s,13)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:13] GotoIf("SIP/Spikko-00000004", "0?continue") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:14] Set("SIP/Spikko-00000004", "__TTL=64") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:15] GotoIf("SIP/Spikko-00000004", "1?continue") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-user-callerid,s,26)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:26] Set("SIP/Spikko-00000004", "CALLERID(number)=972528855903") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:27] Set("SIP/Spikko-00000004", "CALLERID(name)=972528855903") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:28] Set("SIP/Spikko-00000004", "CHANNEL(language)=en") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:2] Set("SIP/Spikko-00000004", "RingGroupMethod=none") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:3] Set("SIP/Spikko-00000004", "__EXTTOCALL=1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:4] Set("SIP/Spikko-00000004", "__PICKUPMARK=1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:5] Set("SIP/Spikko-00000004", "RT=15") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:6] Gosub("SIP/Spikko-00000004", "sub-record-check,s,1(exten,1337,)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:1] GotoIf("SIP/Spikko-00000004", "1?check") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (sub-record-check,s,3)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:3] Set("SIP/Spikko-00000004", "MON_FMT=wav") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:4] GotoIf("SIP/Spikko-00000004", "1?next") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (sub-record-check,s,7)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:7] ExecIf("SIP/Spikko-00000004", "0?Return()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:8] GotoIf("SIP/Spikko-00000004", "0?exten,1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:9] Set("SIP/Spikko-00000004", "__REC_STATUS=INITIALIZED") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:10] ExecIf("SIP/Spikko-00000004", "0?Set(__REC_POLICY_MODE=)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:11] Set("SIP/Spikko-00000004", "NOW=1328005389") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:12] Set("SIP/Spikko-00000004", "__DAY=31") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:13] Set("SIP/Spikko-00000004", "__MONTH=01") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:14] Set("SIP/Spikko-00000004", "__YEAR=2012") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:15] Set("SIP/Spikko-00000004", "__TIMESTR=20120131-122309") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:16] Set("SIP/Spikko-00000004", "__FROMEXTEN=972528855903") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:17] Set("SIP/Spikko-00000004", "__CALLFILENAME=exten-1337-972528855903-20120131-122309-1328005389.4") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@sub-record-check:18] Goto("SIP/Spikko-00000004", "exten,1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (sub-record-check,exten,1)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [exten@sub-record-check:1] GotoIf("SIP/Spikko-00000004", "0?callee") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [exten@sub-record-check:2] Set("SIP/Spikko-00000004", "__REC_POLICY_MODE=dontcare") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [exten@sub-record-check:3] GotoIf("SIP/Spikko-00000004", "1?caller") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (sub-record-check,exten,10)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [exten@sub-record-check:10] Set("SIP/Spikko-00000004", "REC_POLICY_MODE=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [exten@sub-record-check:11] GosubIf("SIP/Spikko-00000004", "0?record,1(exten,1337,972528855903)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [exten@sub-record-check:12] Return("SIP/Spikko-00000004", "") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:7] Macro("SIP/Spikko-00000004", "dial-one,15,tr,1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:1] Set("SIP/Spikko-00000004", "DEXTEN=1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:2] Set("SIP/Spikko-00000004", "DIALSTATUS_CW=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:3] GosubIf("SIP/Spikko-00000004", "0?screen,1()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:4] GosubIf("SIP/Spikko-00000004", "0?cf,1()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:5] GotoIf("SIP/Spikko-00000004", "1?skip1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-dial-one,s,8)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:8] GotoIf("SIP/Spikko-00000004", "0?nodial") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:9] GotoIf("SIP/Spikko-00000004", "0?continue") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:10] Set("SIP/Spikko-00000004", "EXTHASCW=ENABLED") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:11] GotoIf("SIP/Spikko-00000004", "0?next1:cwinusebusy") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-dial-one,s,23)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:23] GotoIf("SIP/Spikko-00000004", "1?next3:continue") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-dial-one,s,24)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:24] ExecIf("SIP/Spikko-00000004", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:25] GotoIf("SIP/Spikko-00000004", "0?nodial") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:26] GosubIf("SIP/Spikko-00000004", "1?dstring,1():dlocal,1()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:1] Set("SIP/Spikko-00000004", "DSTRING=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:2] Set("SIP/Spikko-00000004", "DEVICES=1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/Spikko-00000004", "0?Return()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/Spikko-00000004", "0?Set(DEVICES=337)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:5] Set("SIP/Spikko-00000004", "LOOPCNT=1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:6] Set("SIP/Spikko-00000004", "ITER=1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:7] Set("SIP/Spikko-00000004", "THISDIAL=SIP/1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/Spikko-00000004", "1?zap2dahdi,1()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/Spikko-00000004", "0?Return()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/Spikko-00000004", "NEWDIAL=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/Spikko-00000004", "LOOPCNT2=1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/Spikko-00000004", "ITER2=1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/Spikko-00000004", "THISPART2=SIP/1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/Spikko-00000004", "0?Set(THISPART2=DAHDI/1337)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/Spikko-00000004", "NEWDIAL=SIP/1337&") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/Spikko-00000004", "ITER2=2") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/Spikko-00000004", "0?begin2") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/Spikko-00000004", "THISDIAL=SIP/1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/Spikko-00000004", "") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:9] Set("SIP/Spikko-00000004", "DSTRING=SIP/1337&") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:10] Set("SIP/Spikko-00000004", "ITER=2") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:11] GotoIf("SIP/Spikko-00000004", "0?begin") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:12] Set("SIP/Spikko-00000004", "DSTRING=SIP/1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [dstring@macro-dial-one:13] Return("SIP/Spikko-00000004", "") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:27] GotoIf("SIP/Spikko-00000004", "0?nodial") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:28] GotoIf("SIP/Spikko-00000004", "1?skiptrace") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-dial-one,s,30)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:30] Set("SIP/Spikko-00000004", "D_OPTIONS=tr") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:31] ExecIf("SIP/Spikko-00000004", "0?SIPAddHeader(Alert-Info: )") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:32] ExecIf("SIP/Spikko-00000004", "0?SIPAddHeader()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:33] ExecIf("SIP/Spikko-00000004", "0?Set(CHANNEL(musicclass)=)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:34] GosubIf("SIP/Spikko-00000004", "0?qwait,1()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:35] Set("SIP/Spikko-00000004", "__CWIGNORE=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:36] Set("SIP/Spikko-00000004", "__KEEPCID=TRUE") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:37] GotoIf("SIP/Spikko-00000004", "0?usegoto,1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:38] GotoIf("SIP/Spikko-00000004", "1?godial") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-dial-one,s,42)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:42] Dial("SIP/Spikko-00000004", "SIP/1337,15,tr") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] netsock2.c: == Using SIP RTP TOS bits 184
[2012-01-31 12:23:09] VERBOSE[23094] netsock2.c: == Using SIP RTP CoS mark 5
[2012-01-31 12:23:09] WARNING[23094] chan_sip.c: No audio format found to offer. Cancelling call to 1337
[2012-01-31 12:23:09] VERBOSE[23094] app_dial.c: -- Couldn't call SIP/1337
[2012-01-31 12:23:09] VERBOSE[23094] app_dial.c: == Everyone is busy/congested at this time (0:0/0/0)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:43] ExecIf("SIP/Spikko-00000004", "0?Set(DIALSTATUS=)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:44] GosubIf("SIP/Spikko-00000004", "0?s-CHANUNAVAIL,1()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-dial-one:45] MacroExit("SIP/Spikko-00000004", "") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:8] Set("SIP/Spikko-00000004", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:9] GosubIf("SIP/Spikko-00000004", "0?docfu,1()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:10] GosubIf("SIP/Spikko-00000004", "0?docfb,1()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:11] Set("SIP/Spikko-00000004", "DIALSTATUS=CHANUNAVAIL") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:12] ExecIf("SIP/Spikko-00000004", "0?MacroExit()") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:13] GotoIf("SIP/Spikko-00000004", "0?s-CHANUNAVAIL,1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-exten-vm:14] Macro("SIP/Spikko-00000004", "vm,1337,CHANUNAVAIL,") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-vm:1] Macro("SIP/Spikko-00000004", "user-callerid,SKIPTTL") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/Spikko-00000004", "AMPUSER=972528855903") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/Spikko-00000004", "0?report") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/Spikko-00000004", "0?Set(REALCALLERIDNUM=972528855903)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/Spikko-00000004", "AMPUSER=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/Spikko-00000004", "AMPUSERCIDNAME=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/Spikko-00000004", "1?report") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-user-callerid,s,13)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:13] GotoIf("SIP/Spikko-00000004", "1?continue") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-user-callerid,s,26)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:26] Set("SIP/Spikko-00000004", "CALLERID(number)=972528855903") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:27] Set("SIP/Spikko-00000004", "CALLERID(name)=972528855903") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-user-callerid:28] Set("SIP/Spikko-00000004", "CHANNEL(language)=en") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-vm:2] Set("SIP/Spikko-00000004", "VMGAIN=""") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-vm:3] Macro("SIP/Spikko-00000004", "blkvm-check,") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-blkvm-check:1] Set("SIP/Spikko-00000004", "GOSUB_RETVAL=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-blkvm-check:2] ExecIf("SIP/Spikko-00000004", "0?Set(GOSUB_RETVAL=TRUE)") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-blkvm-check:3] MacroExit("SIP/Spikko-00000004", "") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-vm:4] GotoIf("SIP/Spikko-00000004", "1?vmx,1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-vm,vmx,1)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [vmx@macro-vm:1] Set("SIP/Spikko-00000004", "MEXTEN=1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [vmx@macro-vm:2] Set("SIP/Spikko-00000004", "MMODE=CHANUNAVAIL") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [vmx@macro-vm:3] Set("SIP/Spikko-00000004", "RETVM=") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [vmx@macro-vm:4] Set("SIP/Spikko-00000004", "MODE=unavail") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [vmx@macro-vm:5] GotoIf("SIP/Spikko-00000004", "1?chknomsg") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-vm,vmx,8)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [vmx@macro-vm:8] GotoIf("SIP/Spikko-00000004", "0?s-CHANUNAVAIL,1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [vmx@macro-vm:9] GotoIf("SIP/Spikko-00000004", "1?notdirect") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-vm,vmx,11)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [vmx@macro-vm:11] NoOp("SIP/Spikko-00000004", "Checking if ext 1337 is enabled: ") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [vmx@macro-vm:12] GotoIf("SIP/Spikko-00000004", "1?s-CHANUNAVAIL,1") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-vm,s-CHANUNAVAIL,1)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s-CHANUNAVAIL@macro-vm:1] Macro("SIP/Spikko-00000004", "get-vmcontext,1337") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-get-vmcontext:1] Set("SIP/Spikko-00000004", "VMCONTEXT=default") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-get-vmcontext:2] GotoIf("SIP/Spikko-00000004", "0?200:300") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Goto (macro-get-vmcontext,s,300)
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s@macro-get-vmcontext:300] NoOp("SIP/Spikko-00000004", "") in new stack
[2012-01-31 12:23:09] VERBOSE[23094] pbx.c: -- Executing [s-CHANUNAVAIL@macro-vm:2] VoiceMail("SIP/Spikko-00000004", "1337@default,u""") in new stack
[2012-01-31 12:23:10] WARNING[23094] channel.c: Unable to find a codec translation path from 0x100 (g729) to 0x2 (gsm)
[2012-01-31 12:23:10] WARNING[23094] file.c: Unable to open vm-theperson (format 0x100 (g729)): No such file or directory
[2012-01-31 12:23:10] VERBOSE[23094] app_macro.c: == Spawn extension (macro-vm, s-CHANUNAVAIL, 2) exited non-zero on 'SIP/Spikko-00000004' in macro 'vm'
[2012-01-31 12:23:10] VERBOSE[23094] app_macro.c: == Spawn extension (macro-exten-vm, s, 14) exited non-zero on 'SIP/Spikko-00000004' in macro 'exten-vm'
[2012-01-31 12:23:10] VERBOSE[23094] pbx.c: == Spawn extension (from-did-direct, 1337, 2) exited non-zero on 'SIP/Spikko-00000004'
[2012-01-31 12:23:10] VERBOSE[23094] pbx.c: -- Executing [h@from-did-direct:1] Macro("SIP/Spikko-00000004", "hangupcall,") in new stack
[2012-01-31 12:23:10] VERBOSE[23094] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/Spikko-00000004", "1?theend") in new stack
[2012-01-31 12:23:10] VERBOSE[23094] pbx.c: -- Goto (macro-hangupcall,s,3)
[2012-01-31 12:23:10] VERBOSE[23094] pbx.c: -- Executing [s@macro-hangupcall:3] Hangup("SIP/Spikko-00000004", "") in new stack
[2012-01-31 12:23:10] VERBOSE[23094] app_macro.c: == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'SIP/Spikko-00000004' in macro 'hangupcall'
[2012-01-31 12:23:10] VERBOSE[23094] pbx.c: == Spawn extension (from-did-direct, h, 1) exited non-zero on 'SIP/Spikko-00000004'
[2012-01-31 12:23:10] NOTICE[22507] chan_sip.c: Unable to create/find SIP channel for this INVITE

what should i do?
thanks alot for the helps…

BTW:
my knowlage in dialplanes is minimal…

Someone?

This might work. In the file /etc/asterisk/extensions_custom.conf add the following lines:

[from-trunk-spikko]
exten => s,1,Noop(Entering from-trunk-spikko with DID = ${DID} and setting to: xxxxxxxxxxx)
exten => s,n,Set(__FROM_DID=xxxxxxxxxxx)
exten => s,n,Goto(from-trunk,xxxxxxxxxxx,1)
; end of [from-trunk-spikko]

Replace the xxxxxxxxx’s above to whatever you want the DID to be for your incoming call.
In the Spikko trunk definition peer details in FreePBX add the line “context=from-trunk-spikko” (without the quotes). Once your dialplan has been reloaded the lines above will artificially set your incoming DID to whatever you want.

thanx for the reply,
i did what you suggested:
[from-trunk-spikko]
exten => s,1,Noop(Entering from-trunk-spikko with DID = ${DID} and setting to:972579483289)
exten => s,n,Set(__FROM_DID=972579483289)
exten => s,n,Goto(from-trunk,972579483289,1)
;end of [from-trunk-spikko]

but it faild to work…
this is what i got in the log:

[2012-02-01 00:56:20] VERBOSE[825] netsock2.c: == Using SIP RTP TOS bits 184
[2012-02-01 00:56:20] VERBOSE[825] netsock2.c: == Using SIP RTP CoS mark 5
[2012-02-01 00:56:20] NOTICE[825] chan_sip.c: Call from ‘tzionlevy’ (84.90.182.183:5090) to extension ‘972579483289’ rejected because extension not found in context ‘from-trunk-spikko’.
[2012-02-01 00:56:52] WARNING[825] chan_sip.c: Retransmission timeout reached on transmission [email protected] for seqno 102 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 31999ms with no response

I have used that technique before with success. I am out of ideas sorry.

i changed the [from-trunk-spikko] to USEE detil, icalled in and i got this:

Packet timed out after 32000ms with no response
[2012-02-01 02:02:13] VERBOSE[4110] netsock2.c: == Using SIP RTP TOS bits 184
[2012-02-01 02:02:13] VERBOSE[4110] netsock2.c: == Using SIP RTP CoS mark 5
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk-sip-spikko:1] Set("SIP/spikko-00000002", "GROUP()=OUT_2") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk-sip-spikko:2] Goto("SIP/spikko-00000002", "from-trunk,972579483289,1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (from-trunk,972579483289,1)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk:1] Set("SIP/spikko-00000002", "__FROM_DID=972579483289") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk:2] Gosub("SIP/spikko-00000002", "app-blacklist-check,s,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@app-blacklist-check:1] GotoIf("SIP/spikko-00000002", "0?blacklisted") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@app-blacklist-check:2] Set("SIP/spikko-00000002", "CALLED_BLACKLIST=1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@app-blacklist-check:3] Return("SIP/spikko-00000002", "") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk:3] Gosub("SIP/spikko-00000002", "cidlookup,cidlookup_1,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [cidlookup_1@cidlookup:1] GotoIf("SIP/spikko-00000002", "1?cidlookup,cidlookup_return,1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (cidlookup,cidlookup_return,1)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [cidlookup_return@cidlookup:1] ExecIf("SIP/spikko-00000002", "0?Set(CALLERID(name)=)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [cidlookup_return@cidlookup:2] Return("SIP/spikko-00000002", "") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk:4] Set("SIP/spikko-00000002", "CDR(did)=972579483289") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk:5] ExecIf("SIP/spikko-00000002", "0 ?Set(CALLERID(name)=972528855903)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk:6] Set("SIP/spikko-00000002", "__CALLINGPRES_SV=allowed_not_screened") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk:7] Set("SIP/spikko-00000002", "CALLERPRES()=allowed_not_screened") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [972579483289@from-trunk:8] Goto("SIP/spikko-00000002", "from-did-direct,1337,1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (from-did-direct,1337,1)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [1337@from-did-direct:1] Set("SIP/spikko-00000002", "__RINGTIMER=15") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [1337@from-did-direct:2] Macro("SIP/spikko-00000002", "exten-vm,1337,1337,0,0,0") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:1] Macro("SIP/spikko-00000002", "user-callerid,") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/spikko-00000002", "AMPUSER=972528855903") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/spikko-00000002", "0?report") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/spikko-00000002", "1?Set(REALCALLERIDNUM=972528855903)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/spikko-00000002", "AMPUSER=") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/spikko-00000002", "AMPUSERCIDNAME=") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/spikko-00000002", "1?report") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (macro-user-callerid,s,13)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:13] GotoIf("SIP/spikko-00000002", "0?continue") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:14] Set("SIP/spikko-00000002", "__TTL=64") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:15] GotoIf("SIP/spikko-00000002", "1?continue") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (macro-user-callerid,s,26)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:26] Set("SIP/spikko-00000002", "CALLERID(number)=972528855903") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:27] Set("SIP/spikko-00000002", "CALLERID(name)=972528855903") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:28] Set("SIP/spikko-00000002", "CHANNEL(language)=en") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:2] Set("SIP/spikko-00000002", "RingGroupMethod=none") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:3] Set("SIP/spikko-00000002", "__EXTTOCALL=1337") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:4] Set("SIP/spikko-00000002", "__PICKUPMARK=1337") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:5] Set("SIP/spikko-00000002", "RT=15") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:6] Gosub("SIP/spikko-00000002", "sub-record-check,s,1(exten,1337,)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:1] GotoIf("SIP/spikko-00000002", "1?check") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (sub-record-check,s,3)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:3] Set("SIP/spikko-00000002", "MON_FMT=wav") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:4] GotoIf("SIP/spikko-00000002", "1?next") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (sub-record-check,s,7)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:7] ExecIf("SIP/spikko-00000002", "0?Return()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:8] GotoIf("SIP/spikko-00000002", "0?exten,1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:9] Set("SIP/spikko-00000002", "__REC_STATUS=INITIALIZED") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:10] ExecIf("SIP/spikko-00000002", "0?Set(__REC_POLICY_MODE=)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:11] Set("SIP/spikko-00000002", "NOW=1328054533") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:12] Set("SIP/spikko-00000002", "__DAY=01") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:13] Set("SIP/spikko-00000002", "__MONTH=02") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:14] Set("SIP/spikko-00000002", "__YEAR=2012") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:15] Set("SIP/spikko-00000002", "__TIMESTR=20120201-020213") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:16] Set("SIP/spikko-00000002", "__FROMEXTEN=972528855903") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:17] Set("SIP/spikko-00000002", "__CALLFILENAME=exten-1337-972528855903-20120201-020213-1328054533.2") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@sub-record-check:18] Goto("SIP/spikko-00000002", "exten,1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (sub-record-check,exten,1)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [exten@sub-record-check:1] GotoIf("SIP/spikko-00000002", "0?callee") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [exten@sub-record-check:2] Set("SIP/spikko-00000002", "__REC_POLICY_MODE=dontcare") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [exten@sub-record-check:3] GotoIf("SIP/spikko-00000002", "1?caller") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (sub-record-check,exten,10)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [exten@sub-record-check:10] Set("SIP/spikko-00000002", "REC_POLICY_MODE=") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [exten@sub-record-check:11] GosubIf("SIP/spikko-00000002", "0?record,1(exten,1337,972528855903)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [exten@sub-record-check:12] Return("SIP/spikko-00000002", "") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:7] Macro("SIP/spikko-00000002", "dial-one,15,tr,1337") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:1] Set("SIP/spikko-00000002", "DEXTEN=1337") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:2] Set("SIP/spikko-00000002", "DIALSTATUS_CW=") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:3] GosubIf("SIP/spikko-00000002", "0?screen,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:4] GosubIf("SIP/spikko-00000002", "0?cf,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:5] GotoIf("SIP/spikko-00000002", "1?skip1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (macro-dial-one,s,8)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:8] GotoIf("SIP/spikko-00000002", "0?nodial") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:9] GotoIf("SIP/spikko-00000002", "0?continue") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:10] Set("SIP/spikko-00000002", "EXTHASCW=ENABLED") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:11] GotoIf("SIP/spikko-00000002", "0?next1:cwinusebusy") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (macro-dial-one,s,23)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:23] GotoIf("SIP/spikko-00000002", "1?next3:continue") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (macro-dial-one,s,24)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:24] ExecIf("SIP/spikko-00000002", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:25] GotoIf("SIP/spikko-00000002", "0?nodial") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:26] GosubIf("SIP/spikko-00000002", "1?dstring,1():dlocal,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:1] Set("SIP/spikko-00000002", "DSTRING=") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:2] Set("SIP/spikko-00000002", "DEVICES=1337") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/spikko-00000002", "0?Return()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/spikko-00000002", "0?Set(DEVICES=337)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:5] Set("SIP/spikko-00000002", "LOOPCNT=1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:6] Set("SIP/spikko-00000002", "ITER=1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:7] Set("SIP/spikko-00000002", "THISDIAL=SIP/1337") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/spikko-00000002", "1?zap2dahdi,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/spikko-00000002", "0?Return()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/spikko-00000002", "NEWDIAL=") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/spikko-00000002", "LOOPCNT2=1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/spikko-00000002", "ITER2=1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/spikko-00000002", "THISPART2=SIP/1337") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/spikko-00000002", "0?Set(THISPART2=DAHDI/1337)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/spikko-00000002", "NEWDIAL=SIP/1337&") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/spikko-00000002", "ITER2=2") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/spikko-00000002", "0?begin2") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/spikko-00000002", "THISDIAL=SIP/1337") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/spikko-00000002", "") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:9] Set("SIP/spikko-00000002", "DSTRING=SIP/1337&") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:10] Set("SIP/spikko-00000002", "ITER=2") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:11] GotoIf("SIP/spikko-00000002", "0?begin") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:12] Set("SIP/spikko-00000002", "DSTRING=SIP/1337") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [dstring@macro-dial-one:13] Return("SIP/spikko-00000002", "") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:27] GotoIf("SIP/spikko-00000002", "0?nodial") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:28] GotoIf("SIP/spikko-00000002", "1?skiptrace") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (macro-dial-one,s,30)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:30] Set("SIP/spikko-00000002", "D_OPTIONS=tr") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:31] ExecIf("SIP/spikko-00000002", "0?SIPAddHeader(Alert-Info: )") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:32] ExecIf("SIP/spikko-00000002", "0?SIPAddHeader()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:33] ExecIf("SIP/spikko-00000002", "0?Set(CHANNEL(musicclass)=)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:34] GosubIf("SIP/spikko-00000002", "0?qwait,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:35] Set("SIP/spikko-00000002", "__CWIGNORE=") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:36] Set("SIP/spikko-00000002", "__KEEPCID=TRUE") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:37] GotoIf("SIP/spikko-00000002", "0?usegoto,1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:38] GotoIf("SIP/spikko-00000002", "1?godial") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Goto (macro-dial-one,s,42)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:42] Dial("SIP/spikko-00000002", "SIP/1337,15,tr") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] netsock2.c: == Using SIP RTP TOS bits 184
[2012-02-01 02:02:13] VERBOSE[4245] netsock2.c: == Using SIP RTP CoS mark 5
[2012-02-01 02:02:13] WARNING[4245] chan_sip.c: No audio format found to offer. Cancelling call to 1337
[2012-02-01 02:02:13] VERBOSE[4245] app_dial.c: -- Couldn't call SIP/1337
[2012-02-01 02:02:13] VERBOSE[4245] app_dial.c: == Everyone is busy/congested at this time (0:0/0/0)
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:43] ExecIf("SIP/spikko-00000002", "0?Set(DIALSTATUS=)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:44] GosubIf("SIP/spikko-00000002", "0?s-CHANUNAVAIL,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-dial-one:45] MacroExit("SIP/spikko-00000002", "") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:8] Set("SIP/spikko-00000002", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:9] GosubIf("SIP/spikko-00000002", "0?docfu,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:10] GosubIf("SIP/spikko-00000002", "0?docfb,1()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:11] Set("SIP/spikko-00000002", "DIALSTATUS=CHANUNAVAIL") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:12] ExecIf("SIP/spikko-00000002", "0?MacroExit()") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:13] GotoIf("SIP/spikko-00000002", "0?s-CHANUNAVAIL,1") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-exten-vm:14] Macro("SIP/spikko-00000002", "vm,1337,CHANUNAVAIL,") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-vm:1] Macro("SIP/spikko-00000002", "user-callerid,SKIPTTL") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/spikko-00000002", "AMPUSER=972528855903") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:2] GotoIf("SIP/spikko-00000002", "0?report") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:3] ExecIf("SIP/spikko-00000002", "0?Set(REALCALLERIDNUM=972528855903)") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:4] Set("SIP/spikko-00000002", "AMPUSER=") in new stack
[2012-02-01 02:02:13] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/spikko-00000002", "AMPUSERCIDNAME=") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/spikko-00000002", "1?report") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Goto (macro-user-callerid,s,13)
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:13] GotoIf("SIP/spikko-00000002", "1?continue") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Goto (macro-user-callerid,s,26)
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:26] Set("SIP/spikko-00000002", "CALLERID(number)=972528855903") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:27] Set("SIP/spikko-00000002", "CALLERID(name)=972528855903") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-user-callerid:28] Set("SIP/spikko-00000002", "CHANNEL(language)=en") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-vm:2] Set("SIP/spikko-00000002", "VMGAIN=""") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-vm:3] Macro("SIP/spikko-00000002", "blkvm-check,") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-blkvm-check:1] Set("SIP/spikko-00000002", "GOSUB_RETVAL=") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-blkvm-check:2] ExecIf("SIP/spikko-00000002", "0?Set(GOSUB_RETVAL=TRUE)") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-blkvm-check:3] MacroExit("SIP/spikko-00000002", "") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-vm:4] GotoIf("SIP/spikko-00000002", "1?vmx,1") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Goto (macro-vm,vmx,1)
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [vmx@macro-vm:1] Set("SIP/spikko-00000002", "MEXTEN=1337") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [vmx@macro-vm:2] Set("SIP/spikko-00000002", "MMODE=CHANUNAVAIL") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [vmx@macro-vm:3] Set("SIP/spikko-00000002", "RETVM=") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [vmx@macro-vm:4] Set("SIP/spikko-00000002", "MODE=unavail") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [vmx@macro-vm:5] GotoIf("SIP/spikko-00000002", "1?chknomsg") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Goto (macro-vm,vmx,8)
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [vmx@macro-vm:8] GotoIf("SIP/spikko-00000002", "0?s-CHANUNAVAIL,1") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [vmx@macro-vm:9] GotoIf("SIP/spikko-00000002", "1?notdirect") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Goto (macro-vm,vmx,11)
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [vmx@macro-vm:11] NoOp("SIP/spikko-00000002", "Checking if ext 1337 is enabled: ") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [vmx@macro-vm:12] GotoIf("SIP/spikko-00000002", "1?s-CHANUNAVAIL,1") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Goto (macro-vm,s-CHANUNAVAIL,1)
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s-CHANUNAVAIL@macro-vm:1] Macro("SIP/spikko-00000002", "get-vmcontext,1337") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-get-vmcontext:1] Set("SIP/spikko-00000002", "VMCONTEXT=default") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-get-vmcontext:2] GotoIf("SIP/spikko-00000002", "0?200:300") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Goto (macro-get-vmcontext,s,300)
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-get-vmcontext:300] NoOp("SIP/spikko-00000002", "") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s-CHANUNAVAIL@macro-vm:2] VoiceMail("SIP/spikko-00000002", "1337@default,u""") in new stack
[2012-02-01 02:02:14] WARNING[4245] channel.c: Unable to find a codec translation path from 0x100 (g729) to 0x2 (gsm)
[2012-02-01 02:02:14] WARNING[4245] file.c: Unable to open vm-theperson (format 0x100 (g729)): No such file or directory
[2012-02-01 02:02:14] VERBOSE[4245] app_macro.c: == Spawn extension (macro-vm, s-CHANUNAVAIL, 2) exited non-zero on 'SIP/spikko-00000002' in macro 'vm'
[2012-02-01 02:02:14] VERBOSE[4245] app_macro.c: == Spawn extension (macro-exten-vm, s, 14) exited non-zero on 'SIP/spikko-00000002' in macro 'exten-vm'
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: == Spawn extension (from-did-direct, 1337, 2) exited non-zero on 'SIP/spikko-00000002'
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [h@from-did-direct:1] Macro("SIP/spikko-00000002", "hangupcall,") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/spikko-00000002", "1?theend") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Goto (macro-hangupcall,s,3)
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: -- Executing [s@macro-hangupcall:3] Hangup("SIP/spikko-00000002", "") in new stack
[2012-02-01 02:02:14] VERBOSE[4245] app_macro.c: == Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'SIP/spikko-00000002' in macro 'hangupcall'
[2012-02-01 02:02:14] VERBOSE[4245] pbx.c: == Spawn extension (from-did-direct, h, 1) exited non-zero on 'SIP/spikko-00000002'
[2012-02-01 02:02:14] NOTICE[4110] chan_sip.c: Unable to create/find SIP channel for this INVITE

You have so many issues it’s difficult to even know where to start:

1 - The code the user provided you was wrong. Instead of S needs to have pattern match in extension code

2 - In second trace you have audio issues, do you even have g.729 codec installed.

3 - Do not post such long unformatted log excerpts, either use the format options to make them readable or use pastebin.ca I fixed your two posts as they hurt my eyes.

4 - You might also want to consider using paid support since by your own admission your knowledge of dial plan is minimal. The fact English is not your native language makes this very hard.

someone?

Thanks alot guys! I succeed!
like you said, i changed the s to my exicting extention number and its worked.
thanks alot.

well sorry to say, but it’s not fully working :[
the call is reaching my extension,
but when i try to answer, it hang up, and the caller still hearing the beep sound until he reach the Voice Mail