1) Если в goip в Forwarding to VoIP Number = 202, то переадресация идет на 202 номер. Но по выше описанному контексту, нам надо чтобы входящий с GSM шел на последний звонящий внутренний номер.
2) Forwarding to VoIP Number = оставлял пустым, в этом случае при звонке на GSM, поднимается трубка, слышен шум. В asterisk не чего не происходит.
3) Пробовал в Forwarding to VoIP Number ставить логин транка(GSM3-life) и GSM номер(+380931112233) в ответ от asterisk`а получаю "номер отключен".
4) Forwarding to VoIP Number = 103. В настройка 103 номера в секции Optional Destinations ставил:
Код: Выделить всё
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [103@from-trunk-sip-GSM4-life-2:1] Set("SIP/GSM4-life-2-00000001", "GROUP()=OUT_5") in new stack
-- Executing [103@from-trunk-sip-GSM4-life-2:2] Goto("SIP/GSM4-life-2-00000001", "from-trunk,103,1") in new stack
-- Goto (from-trunk,103,1)
-- Executing [103@from-trunk:1] Set("SIP/GSM4-life-2-00000001", "__RINGTIMER=15") in new stack
-- Executing [103@from-trunk:2] Macro("SIP/GSM4-life-2-00000001", "exten-vm,103,103,1,1,1") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/GSM4-life-2-00000001", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/GSM4-life-2-00000001", "TOUCH_MONITOR=1448231734.5") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/GSM4-life-2-00000001", "AMPUSER=+380935924214") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/GSM4-life-2-00000001", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/GSM4-life-2-00000001", "1?Set(REALCALLERIDNUM=+380739998877)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/GSM4-life-2-00000001", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/GSM4-life-2-00000001", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/GSM4-life-2-00000001", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/GSM4-life-2-00000001", "1?report") in new stack
-- Goto (macro-user-callerid,s,15)
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/GSM4-life-2-00000001", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] Set("SIP/GSM4-life-2-00000001", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:17] GotoIf("SIP/GSM4-life-2-00000001", "1?continue") in new stack
-- Goto (macro-user-callerid,s,28)
-- Executing [s@macro-user-callerid:28] Set("SIP/GSM4-life-2-00000001", "CALLERID(number)=+380739998877") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/GSM4-life-2-00000001", "CALLERID(name)=+380739998877") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/GSM4-life-2-00000001", "CDR(cnum)=+380739998877") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/GSM4-life-2-00000001", "CDR(cnam)=+380739998877") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/GSM4-life-2-00000001", "CHANNEL(language)=ru") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/GSM4-life-2-00000001", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/GSM4-life-2-00000001", "__EXTTOCALL=103") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/GSM4-life-2-00000001", "__PICKUPMARK=103") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/GSM4-life-2-00000001", "RT=15") in new stack
-- Executing [s@macro-exten-vm:6] ExecIf("SIP/GSM4-life-2-00000001", "0?Macro(vm,103,DIRECTDIAL,)") in new stack
-- Executing [s@macro-exten-vm:7] ExecIf("SIP/GSM4-life-2-00000001", "0?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:8] Gosub("SIP/GSM4-life-2-00000001", "sub-record-check,s,1(exten,103,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/GSM4-life-2-00000001", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/GSM4-life-2-00000001", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/GSM4-life-2-00000001", "NOW=1448231734") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/GSM4-life-2-00000001", "__DAY=22") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/GSM4-life-2-00000001", "__MONTH=11") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/GSM4-life-2-00000001", "__YEAR=2015") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/GSM4-life-2-00000001", "__TIMESTR=20151122-223534") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/GSM4-life-2-00000001", "__FROMEXTEN=+380739998877") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/GSM4-life-2-00000001", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/GSM4-life-2-00000001", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/GSM4-life-2-00000001", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/GSM4-life-2-00000001", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/GSM4-life-2-00000001", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/GSM4-life-2-00000001", "5?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/GSM4-life-2-00000001", "1?sub-record-check,exten,1") in new stack
-- Goto (sub-record-check,exten,1)
-- Executing [exten@sub-record-check:1] NoOp("SIP/GSM4-life-2-00000001", "Exten Recording Check between +380739998877 and 103") in new stack
-- Executing [exten@sub-record-check:2] Set("SIP/GSM4-life-2-00000001", "CALLTYPE=internal") in new stack
-- Executing [exten@sub-record-check:3] ExecIf("SIP/GSM4-life-2-00000001", "0?Set(CALLTYPE=)") in new stack
-- Executing [exten@sub-record-check:4] Set("SIP/GSM4-life-2-00000001", "CALLEE=dontcare") in new stack
-- Executing [exten@sub-record-check:5] ExecIf("SIP/GSM4-life-2-00000001", "0?Set(CALLEE=dontcare)") in new stack
-- Executing [exten@sub-record-check:6] GotoIf("SIP/GSM4-life-2-00000001", "0?callee") in new stack
-- Executing [exten@sub-record-check:7] GotoIf("SIP/GSM4-life-2-00000001", "1?caller") in new stack
-- Goto (sub-record-check,exten,13)
-- Executing [exten@sub-record-check:13] Set("SIP/GSM4-life-2-00000001", "RECMODE=") in new stack
-- Executing [exten@sub-record-check:14] ExecIf("SIP/GSM4-life-2-00000001", "1?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:15] ExecIf("SIP/GSM4-life-2-00000001", "1?Set(RECMODE=dontcare)") in new stack
-- Executing [exten@sub-record-check:16] Gosub("SIP/GSM4-life-2-00000001", "recordcheck,1(dontcare,internal,103)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/GSM4-life-2-00000001", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/GSM4-life-2-00000001", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/GSM4-life-2-00000001", "") in new stack
-- Executing [exten@sub-record-check:17] Return("SIP/GSM4-life-2-00000001", "") in new stack
-- Executing [s@macro-exten-vm:9] GotoIf("SIP/GSM4-life-2-00000001", "1?macrodial") in new stack
-- Goto (macro-exten-vm,s,15)
-- Executing [s@macro-exten-vm:15] GosubIf("SIP/GSM4-life-2-00000001", "0?clrheader,1()") in new stack
-- Executing [s@macro-exten-vm:16] Macro("SIP/GSM4-life-2-00000001", "dial-one,15,Ttr,103") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/GSM4-life-2-00000001", "DEXTEN=103") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/GSM4-life-2-00000001", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/GSM4-life-2-00000001", "0?screen,1()") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/GSM4-life-2-00000001", "0?cf,1()") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/GSM4-life-2-00000001", "0?skip1") in new stack
-- Executing [s@macro-dial-one:6] Set("SIP/GSM4-life-2-00000001", "DEXTEN=") in new stack
-- Executing [s@macro-dial-one:7] Set("SIP/GSM4-life-2-00000001", "DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-dial-one:8] GotoIf("SIP/GSM4-life-2-00000001", "1?nodial") in new stack
-- Goto (macro-dial-one,s,49)
-- Executing [s@macro-dial-one:49] ExecIf("SIP/GSM4-life-2-00000001", "0?Set(DIALSTATUS=NOANSWER)") in new stack
-- Executing [s@macro-dial-one:50] NoOp("SIP/GSM4-life-2-00000001", "Returned from dial-one with nothing to call and DIALSTATUS: BUSY") in new stack
-- Executing [s@macro-dial-one:51] MacroExit("SIP/GSM4-life-2-00000001", "") in new stack
-- Executing [s@macro-exten-vm:17] Set("SIP/GSM4-life-2-00000001", "SV_DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-exten-vm:18] GosubIf("SIP/GSM4-life-2-00000001", "0?docfu,1()") in new stack
-- Executing [s@macro-exten-vm:19] GosubIf("SIP/GSM4-life-2-00000001", "0?docfb,1()") in new stack
-- Executing [s@macro-exten-vm:20] Set("SIP/GSM4-life-2-00000001", "DIALSTATUS=BUSY") in new stack
-- Executing [s@macro-exten-vm:21] ExecIf("SIP/GSM4-life-2-00000001", "1?MacroExit()") in new stack
-- Executing [103@from-trunk:3] Set("SIP/GSM4-life-2-00000001", "__PICKUPMARK=") in new stack
-- Executing [103@from-trunk:4] GotoIf("SIP/GSM4-life-2-00000001", "0?+380931112233,s,1") in new stack
-- Executing [103@from-trunk:5] GotoIf("SIP/GSM4-life-2-00000001", "1?+380931112233,s,1") in new stack
-- Goto (+380939964865,s,1)
[2015-11-22 22:35:34] WARNING[2265][C-00000001]: pbx.c:6709 __ast_pbx_run: Channel 'SIP/GSM4-life-2-00000001' sent to invalid extension but no invalid handler: context,exten,priority=+380931112233,s,1
-- Executing [h@+380931112233:1] Hangup("SIP/GSM4-life-2-00000001", "") in new stack
== Spawn extension (+380931112233, h, 1) exited non-zero on 'SIP/GSM4-life-2-00000001'