Страница 1 из 4

Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 14:28
Yakon
Добрый день.
Никак не получается решить проблему с переадресацией звонков пришедших из вне на мобильный.
Freepbx 2.11.0.41, Asterisk 11.13.1
Оператор МТС, sip без регистрации

Код: Выделить всё

disallow=all
allow=alaw
nat=yes
type=friend
qualify=yes
host=10.37.0.X
fromdomain=10.37.0.X
insecure=port
context=All-MTS
dtmfmode=rfc2833
canreinvite=no
fromuser=84959569508
Outbound CallerID - 84959569508
CID Options - Force Trunk CID
AsteriskNow уже вынес на отдельную машину, подключение к МТС напрямую без НАТ.
Переадресация включена на телефоне Panasonic KX-UT113RU, не в FollowMe.

Код: Выделить всё

[2014-11-16 13:24:21] VERBOSE[10554][C-00000c3c] netsock2.c: == Using SIP RTP TOS bits 184
[2014-11-16 13:24:21] VERBOSE[10554][C-00000c3c] netsock2.c: == Using SIP RTP CoS mark 5
[2014-11-16 13:24:21] VERBOSE[10554][C-00000c3c] app_dial.c: -- Called SIP/105
[2014-11-16 13:24:21] VERBOSE[11104][C-00000c3c] chan_sip.c: -- Got SIP response 302 "Moved Temporarily" back from 192.168.50.38:5060
[2014-11-16 13:24:21] VERBOSE[10554][C-00000c3c] app_dial.c: -- Now forwarding SIP/4959569508-trunk-2-MTS-00001b4a to 'SIP/89263706323::::UDP@asterisk.nes.ru' (thanks to SIP/105-00001b4b)
[2014-11-16 13:24:21] VERBOSE[10554][C-00000c3c] netsock2.c: == Using SIP RTP TOS bits 184
[2014-11-16 13:24:21] VERBOSE[10554][C-00000c3c] netsock2.c: == Using SIP RTP CoS mark 5
[2014-11-16 13:24:21] NOTICE[10554][C-00000c3c] app_dial.c: Not accepting call completion offers from call-forward recipient SIP/asterisk.nes.ru-00001b4c
[2014-11-16 13:24:21] NOTICE[11104][C-00000c3c] chan_sip.c: Failed to authenticate on INVITE to '"4955163262" <sip:84955163262@192.168.50.1>;tag=as2a11fc0a'
[2014-11-16 13:24:21] VERBOSE[10554][C-00000c3c] app_dial.c: -- SIP/asterisk.nes.ru-00001b4c is circuit-busy
[2014-11-16 13:24:21] VERBOSE[10554][C-00000c3c] app_dial.c: == Everyone is busy/congested at this time (1:0/1/0)
Подскажите, плиз, как победить.

Re: Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 14:57
Kovalsky
Можно полный лог с verbosity=7? Желательно от начала входящего вызова до самого конца

Re: Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 15:21
Yakon

Код: Выделить всё

[2014-11-16 15:20:41] VERBOSE[11104][C-00000c3f] netsock2.c: == Using SIP RTP TOS bits 184
[2014-11-16 15:20:41] VERBOSE[11104][C-00000c3f] netsock2.c: == Using SIP RTP CoS mark 5
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [84959569508@All-MTS:1] NoOp("SIP/4959569508-trunk-MTS-00001b4f", "Running miscapp 5: 84959569508") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [84959569508@All-MTS:2] Macro("SIP/4959569508-trunk-MTS-00001b4f", "user-callerid,") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/4959569508-trunk-MTS-00001b4f", "TOUCH_MONITOR=1416140441.7001") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "AMPUSER=84955163262") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:3] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?report") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:4] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "1?Set(REALCALLERIDNUM=84955163262)") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/4959569508-trunk-MTS-00001b4f", "AMPUSER=") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?limit") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/4959569508-trunk-MTS-00001b4f", "AMPUSERCIDNAME=") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:8] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?report") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-user-callerid,s,16)
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:16] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?continue") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:17] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:18] Set("SIP/4959569508-trunk-MTS-00001b4f", "__TTL=64") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:19] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?continue") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-user-callerid,s,30)
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:30] Set("SIP/4959569508-trunk-MTS-00001b4f", "CALLERID(number)=84955163262") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:31] Set("SIP/4959569508-trunk-MTS-00001b4f", "CALLERID(name)=4955163262") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:32] Set("SIP/4959569508-trunk-MTS-00001b4f", "CDR(cnum)=84955163262") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:33] Set("SIP/4959569508-trunk-MTS-00001b4f", "CDR(cnam)=4955163262") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:34] Set("SIP/4959569508-trunk-MTS-00001b4f", "CHANNEL(language)=en") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [84959569508@All-MTS:3] Goto("SIP/4959569508-trunk-MTS-00001b4f", "ivr-2,s,1") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (ivr-2,s,1)
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@ivr-2:1] Set("SIP/4959569508-trunk-MTS-00001b4f", "_IVR_CONTEXT_ivr-2=") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@ivr-2:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "_IVR_CONTEXT=ivr-2") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@ivr-2:3] Set("SIP/4959569508-trunk-MTS-00001b4f", "__IVR_RETVM=") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@ivr-2:4] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?skip") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@ivr-2:5] Answer("SIP/4959569508-trunk-MTS-00001b4f", "") in new stack
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] res_rtp_asterisk.c: > 0x7f0ab81b6600 -- Probation passed - setting RTP source address to 10.37.0.55:26924
[2014-11-16 15:20:41] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@ivr-2:6] Wait("SIP/4959569508-trunk-MTS-00001b4f", "1") in new stack
[2014-11-16 15:20:42] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@ivr-2:7] Set("SIP/4959569508-trunk-MTS-00001b4f", "IVR_MSG=en/hello&if-u-know-ext-dial&en/or-press&en/digits/0") in new stack
[2014-11-16 15:20:42] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@ivr-2:8] Set("SIP/4959569508-trunk-MTS-00001b4f", "TIMEOUT(digit)=3") in new stack
[2014-11-16 15:20:42] VERBOSE[10778][C-00000c3f] func_timeout.c: -- Digit timeout set to 3.000
[2014-11-16 15:20:42] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@ivr-2:9] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "1?Background(en/hello&if-u-know-ext-dial&en/or-press&en/digits/0)") in new stack
[2014-11-16 15:20:42] VERBOSE[10778][C-00000c3f] file.c: -- <SIP/4959569508-trunk-MTS-00001b4f> Playing 'en/hello.alaw' (language 'en')
[2014-11-16 15:20:43] VERBOSE[10778][C-00000c3f] file.c: -- <SIP/4959569508-trunk-MTS-00001b4f> Playing 'if-u-know-ext-dial.alaw' (language 'en')
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: == CDR updated on SIP/4959569508-trunk-MTS-00001b4f
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [105@ivr-2:1] Macro("SIP/4959569508-trunk-MTS-00001b4f", "blkvm-clr,") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-blkvm-clr:1] Set("SIP/4959569508-trunk-MTS-00001b4f", "SHARED(BLKVM,)=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-blkvm-clr:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "GOSUB_RETVAL=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-blkvm-clr:3] MacroExit("SIP/4959569508-trunk-MTS-00001b4f", "") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [105@ivr-2:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "__NODEST=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [105@ivr-2:3] Goto("SIP/4959569508-trunk-MTS-00001b4f", "from-did-direct,105,1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (from-did-direct,105,1)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [105@from-did-direct:1] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?ext-local,105,1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (ext-local,105,1)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [105@ext-local:1] Set("SIP/4959569508-trunk-MTS-00001b4f", "__RINGTIMER=15") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [105@ext-local:2] Macro("SIP/4959569508-trunk-MTS-00001b4f", "exten-vm,novm,105,0,0,0") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:1] Macro("SIP/4959569508-trunk-MTS-00001b4f", "user-callerid,") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/4959569508-trunk-MTS-00001b4f", "TOUCH_MONITOR=1416140441.7001") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "AMPUSER=84955163262") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:3] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?report") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:4] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Set(REALCALLERIDNUM=84955163262)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/4959569508-trunk-MTS-00001b4f", "AMPUSER=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?limit") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/4959569508-trunk-MTS-00001b4f", "AMPUSERCIDNAME=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:8] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?report") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-user-callerid,s,16)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:16] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?continue") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:17] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:18] Set("SIP/4959569508-trunk-MTS-00001b4f", "__TTL=63") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:19] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?continue") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-user-callerid,s,30)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:30] Set("SIP/4959569508-trunk-MTS-00001b4f", "CALLERID(number)=84955163262") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:31] Set("SIP/4959569508-trunk-MTS-00001b4f", "CALLERID(name)=4955163262") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:32] Set("SIP/4959569508-trunk-MTS-00001b4f", "CDR(cnum)=84955163262") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:33] Set("SIP/4959569508-trunk-MTS-00001b4f", "CDR(cnam)=4955163262") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-user-callerid:34] Set("SIP/4959569508-trunk-MTS-00001b4f", "CHANNEL(language)=en") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "RingGroupMethod=none") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:3] Set("SIP/4959569508-trunk-MTS-00001b4f", "__EXTTOCALL=105") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:4] Set("SIP/4959569508-trunk-MTS-00001b4f", "__PICKUPMARK=105") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:5] Set("SIP/4959569508-trunk-MTS-00001b4f", "RT=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:6] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Macro(vm,novm,DIRECTDIAL,)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:7] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?MacroExit()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:8] Gosub("SIP/4959569508-trunk-MTS-00001b4f", "sub-record-check,s,1(exten,105,)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:1] Set("SIP/4959569508-trunk-MTS-00001b4f", "REC_POLICY_MODE_SAVE=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:2] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?check") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (sub-record-check,s,7)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:7] Set("SIP/4959569508-trunk-MTS-00001b4f", "__MON_FMT=wav") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:8] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?next") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (sub-record-check,s,11)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:11] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Return()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:12] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Set(__REC_POLICY_MODE=)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:13] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?exten,1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:14] Set("SIP/4959569508-trunk-MTS-00001b4f", "__REC_STATUS=INITIALIZED") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:15] Set("SIP/4959569508-trunk-MTS-00001b4f", "NOW=1416140447") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:16] Set("SIP/4959569508-trunk-MTS-00001b4f", "__DAY=16") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:17] Set("SIP/4959569508-trunk-MTS-00001b4f", "__MONTH=11") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:18] Set("SIP/4959569508-trunk-MTS-00001b4f", "__YEAR=2014") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:19] Set("SIP/4959569508-trunk-MTS-00001b4f", "__TIMESTR=20141116-152047") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:20] Set("SIP/4959569508-trunk-MTS-00001b4f", "__FROMEXTEN=84955163262") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:21] Set("SIP/4959569508-trunk-MTS-00001b4f", "__CALLFILENAME=exten-105-84955163262-20141116-152047-1416140441.7001") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@sub-record-check:22] Goto("SIP/4959569508-trunk-MTS-00001b4f", "exten,1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (sub-record-check,exten,1)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [exten@sub-record-check:1] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?callee") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [exten@sub-record-check:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "__REC_POLICY_MODE=dontcare") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [exten@sub-record-check:3] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?caller") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (sub-record-check,exten,10)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [exten@sub-record-check:10] Set("SIP/4959569508-trunk-MTS-00001b4f", "__REC_POLICY_MODE=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [exten@sub-record-check:11] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "0?record,1(exten,105,84955163262)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [exten@sub-record-check:12] Return("SIP/4959569508-trunk-MTS-00001b4f", "") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:9] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?macrodial") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-exten-vm,s,15)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:15] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "0?clrheader,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:16] Macro("SIP/4959569508-trunk-MTS-00001b4f", "dial-one,,Ttr,105") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:1] Set("SIP/4959569508-trunk-MTS-00001b4f", "DEXTEN=105") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "DIALSTATUS_CW=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:3] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "0?screen,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:4] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "0?cf,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:5] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?skip1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-dial-one,s,8)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:8] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?nodial") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:9] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?continue") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:10] Set("SIP/4959569508-trunk-MTS-00001b4f", "EXTHASCW=ENABLED") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:11] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?next1:cwinusebusy") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-dial-one,s,23)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:23] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?next3:continue") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-dial-one,s,24)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:24] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:25] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?nodial") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:26] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "1?dstring,1():dlocal,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:1] Set("SIP/4959569508-trunk-MTS-00001b4f", "DSTRING=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "DEVICES=105") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Return()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Set(DEVICES=05)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:5] Set("SIP/4959569508-trunk-MTS-00001b4f", "LOOPCNT=1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:6] Set("SIP/4959569508-trunk-MTS-00001b4f", "ITER=1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:7] Set("SIP/4959569508-trunk-MTS-00001b4f", "THISDIAL=SIP/105") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "1?zap2dahdi,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Return()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/4959569508-trunk-MTS-00001b4f", "NEWDIAL=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/4959569508-trunk-MTS-00001b4f", "LOOPCNT2=1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/4959569508-trunk-MTS-00001b4f", "ITER2=1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/4959569508-trunk-MTS-00001b4f", "THISPART2=SIP/105") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Set(THISPART2=DAHDI/105)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/4959569508-trunk-MTS-00001b4f", "NEWDIAL=SIP/105&") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/4959569508-trunk-MTS-00001b4f", "ITER2=2") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?begin2") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/4959569508-trunk-MTS-00001b4f", "THISDIAL=SIP/105") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/4959569508-trunk-MTS-00001b4f", "") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:9] Set("SIP/4959569508-trunk-MTS-00001b4f", "DSTRING=SIP/105&") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:10] Set("SIP/4959569508-trunk-MTS-00001b4f", "ITER=2") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:11] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?begin") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:12] Set("SIP/4959569508-trunk-MTS-00001b4f", "DSTRING=SIP/105") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [dstring@macro-dial-one:13] Return("SIP/4959569508-trunk-MTS-00001b4f", "") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:27] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?nodial") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:28] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?skiptrace") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:29] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "1?ctset,1():ctclear,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [ctset@macro-dial-one:1] Set("SIP/4959569508-trunk-MTS-00001b4f", "DB(CALLTRACE/105)=84955163262") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [ctset@macro-dial-one:2] Return("SIP/4959569508-trunk-MTS-00001b4f", "") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:30] Set("SIP/4959569508-trunk-MTS-00001b4f", "D_OPTIONS=Ttr") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:31] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?SIPAddHeader(Alert-Info: )") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:32] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?SIPAddHeader()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:33] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Set(CHANNEL(musicclass)=)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:34] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "0?qwait,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:35] Set("SIP/4959569508-trunk-MTS-00001b4f", "__CWIGNORE=") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:36] Set("SIP/4959569508-trunk-MTS-00001b4f", "__KEEPCID=TRUE") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:37] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?usegoto,1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:38] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?godial") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-dial-one,s,43)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:43] Dial("SIP/4959569508-trunk-MTS-00001b4f", "SIP/105,,Ttr") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] netsock2.c: == Using SIP RTP TOS bits 184
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] netsock2.c: == Using SIP RTP CoS mark 5
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] app_dial.c: -- Called SIP/105
[2014-11-16 15:20:47] VERBOSE[11104][C-00000c3f] chan_sip.c: -- Got SIP response 302 "Moved Temporarily" back from 192.168.50.38:5060
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] app_dial.c: -- Now forwarding SIP/4959569508-trunk-MTS-00001b4f to 'SIP/89263706323::::UDP@asterisk.nes.ru' (thanks to SIP/105-00001b50)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] netsock2.c: == Using SIP RTP TOS bits 184
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] netsock2.c: == Using SIP RTP CoS mark 5
[2014-11-16 15:20:47] NOTICE[10778][C-00000c3f] app_dial.c: Not accepting call completion offers from call-forward recipient SIP/asterisk.nes.ru-00001b51
[2014-11-16 15:20:47] NOTICE[11104][C-00000c3f] chan_sip.c: Failed to authenticate on INVITE to '"4955163262" <sip:84955163262@192.168.50.1>;tag=as35071214'
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] app_dial.c: -- SIP/asterisk.nes.ru-00001b51 is circuit-busy
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] app_dial.c: == Everyone is busy/congested at this time (1:0/1/0)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:44] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?MacroExit()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:45] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Set(DIALSTATUS=)") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:46] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "0?s-CONGESTION,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-dial-one:47] MacroExit("SIP/4959569508-trunk-MTS-00001b4f", "") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:17] Set("SIP/4959569508-trunk-MTS-00001b4f", "SV_DIALSTATUS=CONGESTION") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:18] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "0?docfu,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:19] GosubIf("SIP/4959569508-trunk-MTS-00001b4f", "0?docfb,1()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:20] Set("SIP/4959569508-trunk-MTS-00001b4f", "DIALSTATUS=CONGESTION") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:21] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?MacroExit()") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-exten-vm:22] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?s-CONGESTION,1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-exten-vm,s-CONGESTION,1)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s-CONGESTION@macro-exten-vm:1] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "0?exit,1") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s-CONGESTION@macro-exten-vm:2] PlayTones("SIP/4959569508-trunk-MTS-00001b4f", "congestion") in new stack
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s-CONGESTION@macro-exten-vm:3] Congestion("SIP/4959569508-trunk-MTS-00001b4f", "10") in new stack
[2014-11-16 15:20:50] VERBOSE[10778][C-00000c3f] app_macro.c: == Spawn extension (macro-exten-vm, s-CONGESTION, 3) exited non-zero on 'SIP/4959569508-trunk-MTS-00001b4f' in macro 'exten-vm'
[2014-11-16 15:20:50] VERBOSE[10778][C-00000c3f] pbx.c: == Spawn extension (ext-local, 105, 2) exited non-zero on 'SIP/4959569508-trunk-MTS-00001b4f'
[2014-11-16 15:20:50] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [h@ext-local:1] Macro("SIP/4959569508-trunk-MTS-00001b4f", "hangupcall,") in new stack
[2014-11-16 15:20:50] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/4959569508-trunk-MTS-00001b4f", "1?theend") in new stack
[2014-11-16 15:20:50] VERBOSE[10778][C-00000c3f] pbx.c: -- Goto (macro-hangupcall,s,3)
[2014-11-16 15:20:50] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-hangupcall:3] ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "0?Set(CDR(recordingfile)=)") in new stack
[2014-11-16 15:20:50] VERBOSE[10778][C-00000c3f] pbx.c: -- Executing [s@macro-hangupcall:4] Hangup("SIP/4959569508-trunk-MTS-00001b4f", "") in new stack
[2014-11-16 15:20:50] VERBOSE[10778][C-00000c3f] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/4959569508-trunk-MTS-00001b4f' in macro 'hangupcall'
[2014-11-16 15:20:50] VERBOSE[10778][C-00000c3f] pbx.c: == Spawn extension (ext-local, h, 1) exited non-zero on 'SIP/4959569508-trunk-MTS-00001b4f'

Re: Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 15:26
Yakon
Переадресация с внутреннего ext работает нормально.
Входящие, исходящие тоже.
Ещё есть Custom Contexts, так как я нас два телефонных провайдера. Но это по идее здесь не играет роли.

Re: Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 16:00
ded
Проблема с Caller ID при такой переадресации (т.н. "Проблема прозрачного CLID").
Обычным образом при вызове в город назначается Caller ID (num)=84959569508
и вызов аутентифицируется.
Если переадресация внутреняя - срабатывает понимание что это всё же внутренний вызов, и, опять также, назначается Caller ID (num)=84959569508
А вот если прибегает снаружи с номера 84955163262 - то срабатывает
ExecIf("SIP/4959569508-trunk-MTS-00001b4f", "1?Set(REALCALLERIDNUM=84955163262)") in new stack
и этот номер пытается подставиться при исходящем, на что МТС отвечает
Failed to authenticate on INVITE to '"4955163262" <sip:84955163262@192.168.50.1>

То есть если пропишите 84959569508 на транке в качестве CID то все вызовы будут прикрываться этим номером (если только звонок не утекает из транка в транк по вашим кастомным правилам в Custom Contexts.

Re: Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 19:12
Yakon
Outbound CallerID - 84959569508
CID Options - Force Trunk CID
Это прописано у МТС транка.
В последнем логе звонок пришёл по транку 4959569508-trunk-MTS и по нему же пытался уйти. Не получается.
Всего 4 транка.
Как бы так сделать, чтобы при любым исходящих всегда нужный мне CID устанавливался, указанный для каждого из транков?
Почему не помогает:
Outbound CallerID - 84959569508
CID Options - Force Trunk CID
? Может где-то ещё нужно указать?

Re: Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 19:21
Yakon
Ещё момент.
В sip_custom.conf указано promiscredir=yes
Иначе 302 редирект у МТС не работает. Исходящие не проходят.

Re: Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 19:23
ded
Ответ тут находится:

Код: Выделить всё

[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] app_dial.c: -- Now forwarding SIP/4959569508-trunk-MTS-00001b4f to 'SIP/89263706323::::UDP@asterisk.nes.ru' (thanks to SIP/105-00001b50)
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] netsock2.c: == Using SIP RTP TOS bits 184
[2014-11-16 15:20:47] VERBOSE[10778][C-00000c3f] netsock2.c: == Using SIP RTP CoS mark 5
[2014-11-16 15:20:47] NOTICE[10778][C-00000c3f] app_dial.c: Not accepting call completion offers from call-forward recipient SIP/asterisk.nes.ru-00001b51
[2014-11-16 15:20:47] NOTICE[11104][C-00000c3f] chan_sip.c: Failed to authenticate on INVITE to '"4955163262" <sip:84955163262@192.168.50.1>;tag=as35071214'
Пытается аутентифицировать инвайт, может не на всех транках стоит у вас insecure=invite?
Может нужно где-то ещё указать.

Re: Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 20:25
Yakon
insecure=invite был, в ходе экспериментов убрал.
Сейчас вернул. Не работает.

Код: Выделить всё

[2014-11-16 15:20:47] NOTICE[11104][C-00000c3f] chan_sip.c: Failed to authenticate on INVITE to '"4955163262" <sip:84955163262@192.168.50.1>;tag=as35071214'
4955163262 - номер с которого звоню на 4959569508
Он берется получается из REALCALLERIDNUM?
Может как-то его можно заменить при переадресации?

Re: Переадресация входящих из вне на внешний номер (Freebpx)

Добавлено: 16 ноя 2014, 20:26
Yakon
dialplan show macro-user-callerid

Код: Выделить всё

[ Context 'macro-user-callerid' created by 'pbx_config' ]
  'h' =>            1. Macro(hangupcall,)                         [pbx_config]
  's' =>            1. Set(TOUCH_MONITOR=${UNIQUEID})             [pbx_config]
                    2. Set(AMPUSER=${IF($["${AMPUSER}" = ""]?${CALLERID(number)}:${AMPUSER})}) [pbx_config]
                    3. GotoIf($["${CUT(CHANNEL,@,2):5:5}"="queue" | ${LEN(${AMPUSERCIDNAME})}]?report) [pbx_config]
                    4. ExecIf($["${REALCALLERIDNUM:1:2}" = ""]?Set(REALCALLERIDNUM=${CALLERID(number)})) [pbx_config]
                    5. Set(AMPUSER=${DB(DEVICE/${REALCALLERIDNUM}/user)}) [pbx_config]
                    6. GotoIf($["${AMPUSER}" = "none"]?limit)     [pbx_config]
                    7. Set(AMPUSERCIDNAME=${DB(AMPUSER/${AMPUSER}/cidname)}) [pbx_config]
                    8. GotoIf($["${AMPUSERCIDNAME:1:2}" = ""]?report) [pbx_config]
                    9. Set(AMPUSERCID=${IF($["${ARG2}" != "EXTERNAL" & "${DB_EXISTS(AMPUSER/${AMPUSER}/cidnum)}" = "1"]?${DB_RESULT}:${AMPUSER})}) [pbx_config]
                    10. Set(__DIAL_OPTIONS=${IF($["${DB_EXISTS(AMPUSER/${AMPUSER}/dialopts)}" = "1"]?${DB_RESULT}:${DIAL_OPTIONS})}) [pbx_config]
                    11. Set(CALLERID(all)="${AMPUSERCIDNAME}" <${AMPUSERCID}>) [pbx_config]
                    12. GotoIf($["${ARG1}"="LIMIT" & ${LEN(${AMPUSER})} & "${DB(AMPUSER/${AMPUSER}/concurrency_limit)}">"0" & "${GROUP_COUNT(${AMPUSER}@concurrency_limit)}">="${DB(AMPUSER/${AMPUSER}/concurrency_limit)}"]?limit) [pbx_config]
                    13. ExecIf($["${ARG1}"="LIMIT" & ${LEN(${AMPUSER})}]?Set(GROUP(concurrency_limit)=${AMPUSER})) [pbx_config]
                    14. ExecIf($["${DB(AMPUSER/${AMPUSER}/language)}" != ""]?Set(CHANNEL(language)=${DB(AMPUSER/${AMPUSER}/language)})) [pbx_config]
                    15. GosubIf($[${LEN(${DB(AMPUSER/${AMPUSER}/ccss/cc_agent_policy)})} & "${DB(AMPUSER/${AMPUSER}/ccss/cc_agent_policy)}" != "never"]?sub-ccss,s,1(${MACRO_CONTEXT},${CALLERID(dnid)})) [pbx_config]
     [report]       16. GotoIf($[ "${ARG1}" = "SKIPTTL" | "${ARG1}" = "LIMIT" ]?continue) [pbx_config]
                    17. ExecIf($["${CALLEE_ACCOUNCODE}" = ""]?Set(__CALLEE_ACCOUNCODE=${DB(AMPUSER/${IF($["${MACRO_CONTEXT}"="macro-exten-vm"]?${ARG2}:${MACRO_EXTEN})}/accountcode)})) [pbx_config]
     [report2]      18. Set(__TTL=${IF($["foo${TTL}" = "foo"]?64:$[ ${TTL} - 1 ])}) [pbx_config]
                    19. GotoIf($[ ${TTL} > 0 ]?continue)          [pbx_config]
                    20. Wait(${RINGTIMER})                        [pbx_config]
                    21. Answer()                                  [pbx_config]
                    22. Wait(1)                                   [pbx_config]
                    23. Playback(im-sorry&an-error-has-occured&with&call-forwarding) [pbx_config]
                    24. Macro(hangupcall,)                        [pbx_config]
     [limit]        25. Answer()                                  [pbx_config]
                    26. Wait(1)                                   [pbx_config]
                    27. Playback(beep&im-sorry&your&simul-call-limit-reached&goodbye) [pbx_config]
                    28. Macro(hangupcall,)                        [pbx_config]
                    29. Congestion(20)                            [pbx_config]
     [continue]     30. Set(CALLERID(number)=${CALLERID(number):0:40}) [pbx_config]
                    31. Set(CALLERID(name)=${CALLERID(name):0:40}) [pbx_config]
                    32. Set(CDR(cnum)=${CALLERID(num)})           [pbx_config]
                    33. Set(CDR(cnam)=${CALLERID(name)})          [pbx_config]
                    34. Set(CHANNEL(language)=${MASTER_CHANNEL(CHANNEL(language))}) [pbx_config]

-= 2 extensions (35 priorities) in 1 context. =-