Внутренние звонки работают через внешний сервер
Добавлено: 02 дек 2014, 13:49
По какой-то непонятной причине внутренние звонки начали работать по внешней линии, естественно заканчивается это дело как Busy. Куда копать?
Код: Выделить всё
<--- Transmitting (no NAT) to 10.23.1.229:5080 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.23.1.229:5080;branch=z9hG4bKa7fbf298;received=10.23.1.229
From: <sip:277@10.23.1.13>;tag=3409585893
To: <sip:999@10.23.1.13>
Call-ID: 03023ad3-4f0e0b1c6f168d7c888b080023629ea5@10.23.1.229
CSeq: 2 INVITE
Server: FPBX-12.0.13(11.14.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact: <sip:999@10.23.1.13:5060>
Content-Length: 0
<------------>
-- Executing [999@from-internal:1] Macro("SIP/277-00000086", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/277-00000086", "TOUCH_MONITOR=1417517006.144") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/277-00000086", "AMPUSER=277") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/277-00000086", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/277-00000086", "1?Set(REALCALLERIDNUM=277)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/277-00000086", "AMPUSER=277") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/277-00000086", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/277-00000086", "AMPUSERCIDNAME=Топливная группа") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/277-00000086", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/277-00000086", "AMPUSERCID=277") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/277-00000086", "__DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/277-00000086", "CALLERID(all)="Топливная группа" <277>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/277-00000086", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/277-00000086", "1?Set(GROUP(concurrency_limit)=277)") in new stack
-- Executing [s@macro-user-callerid:14] GosubIf("SIP/277-00000086", "7?sub-ccss,s,1(from-internal,999)") in new stack
-- Executing [s@sub-ccss:1] ExecIf("SIP/277-00000086", "0?Return()") in new stack
-- Executing [s@sub-ccss:2] Set("SIP/277-00000086", "CCSS_SETUP=TRUE") in new stack
-- Executing [s@sub-ccss:3] GosubIf("SIP/277-00000086", "7?monitor_config,1(from-internal,999):monitor_default,1(from-internal,999)") in new stack
-- Executing [monitor_config@sub-ccss:1] Set("SIP/277-00000086", "CALLCOMPLETION(cc_monitor_policy)=generic") in new stack
-- Executing [monitor_config@sub-ccss:2] GotoIf("SIP/277-00000086", "1?set_monitor") in new stack
-- Goto (sub-ccss,monitor_config,5)
-- Executing [monitor_config@sub-ccss:5] Set("SIP/277-00000086", "CALLCOMPLETION(cc_max_monitors)=") in new stack
-- Executing [monitor_config@sub-ccss:6] Return("SIP/277-00000086", "TRUE") in new stack
-- Executing [s@sub-ccss:4] GosubIf("SIP/277-00000086", "7?agent_config,1():agent_default,1()") in new stack
-- Executing [agent_config@sub-ccss:1] Set("SIP/277-00000086", "CALLCOMPLETION(cc_agent_policy)=generic") in new stack
-- Executing [agent_config@sub-ccss:2] Set("SIP/277-00000086", "CALLCOMPLETION(cc_offer_timer)=") in new stack
-- Executing [agent_config@sub-ccss:3] Set("SIP/277-00000086", "CALLCOMPLETION(ccbs_available_timer)=") in new stack
-- Executing [agent_config@sub-ccss:4] Set("SIP/277-00000086", "CALLCOMPLETION(ccnr_available_timer)=") in new stack
-- Executing [agent_config@sub-ccss:5] Set("SIP/277-00000086", "CALLCOMPLETION(cc_callback_macro)=ccss-default") in new stack
[2014-12-02 15:43:26] WARNING[13584][C-00000046]: ccss.c:1000 ast_set_cc_callback_macro: Usage of cc_callback_macro is deprecated. Please use cc_callback_sub instead.
-- Executing [agent_config@sub-ccss:6] ExecIf("SIP/277-00000086", "1?Set(CALLCOMPLETION(cc_recall_timer)=)") in new stack
[2014-12-02 15:43:26] WARNING[13584][C-00000046]: ccss.c:933 ast_set_cc_recall_timer: 0 is an invalid value for ccnr_available_timer. Retaining value as 20
-- Executing [agent_config@sub-ccss:7] ExecIf("SIP/277-00000086", "1?Set(CALLCOMPLETION(cc_max_agents)=)") in new stack
-- Executing [agent_config@sub-ccss:8] ExecIf("SIP/277-00000086", "0?Set(CALLCOMPLETION(cc_agent_dialstring)=Local/277_999@from-ccss-)") in new stack
-- Executing [agent_config@sub-ccss:9] Set("SIP/277-00000086", "CALLCOMPLETION(cc_callback_macro)=ccss-default") in new stack
[2014-12-02 15:43:26] WARNING[13584][C-00000046]: ccss.c:1000 ast_set_cc_callback_macro: Usage of cc_callback_macro is deprecated. Please use cc_callback_sub instead.
-- Executing [agent_config@sub-ccss:10] Return("SIP/277-00000086", "") in new stack
-- Executing [s@sub-ccss:5] Set("SIP/277-00000086", "DB(AMPUSER/277/ccss/last_number)=999") in new stack
-- Executing [s@sub-ccss:6] Return("SIP/277-00000086", "") in new stack
-- Executing [s@macro-user-callerid:15] ExecIf("SIP/277-00000086", "1?Set(CHANNEL(language)=ru)") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/277-00000086", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/277-00000086", "CALLERID(number)=277") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/277-00000086", "CALLERID(name)=Топливная группа") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/277-00000086", "CDR(cnum)=277") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/277-00000086", "CDR(cnam)=Топливная группа") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/277-00000086", "CHANNEL(language)=ru") in new stack
-- Executing [999@from-internal:2] Set("SIP/277-00000086", "MOHCLASS=default") in new stack
-- Executing [999@from-internal:3] Set("SIP/277-00000086", "_NODEST=") in new stack
-- Executing [999@from-internal:4] Gosub("SIP/277-00000086", "sub-record-check,s,1(out,999,)") in new stack
-- Executing [s@sub-record-check:1] Set("SIP/277-00000086", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:2] GotoIf("SIP/277-00000086", "1?check") in new stack
-- Goto (sub-record-check,s,7)
-- Executing [s@sub-record-check:7] Set("SIP/277-00000086", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:8] GotoIf("SIP/277-00000086", "1?next") in new stack
-- Goto (sub-record-check,s,11)
-- Executing [s@sub-record-check:11] ExecIf("SIP/277-00000086", "0?Return()") in new stack
-- Executing [s@sub-record-check:12] ExecIf("SIP/277-00000086", "0?Set(__REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:13] GotoIf("SIP/277-00000086", "0?out,1") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/277-00000086", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/277-00000086", "NOW=1417517007") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/277-00000086", "__DAY=02") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/277-00000086", "__MONTH=12") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/277-00000086", "__YEAR=2014") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/277-00000086", "__TIMESTR=20141202-154327") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/277-00000086", "__FROMEXTEN=277") in new stack
-- Executing [s@sub-record-check:21] Set("SIP/277-00000086", "__CALLFILENAME=out-999-277-20141202-154327-1417517006.144") in new stack
-- Executing [s@sub-record-check:22] Goto("SIP/277-00000086", "out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] ExecIf("SIP/277-00000086", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
-- Executing [out@sub-record-check:2] GosubIf("SIP/277-00000086", "0?record,1(exten,999,277)") in new stack
-- Executing [out@sub-record-check:3] Return("SIP/277-00000086", "") in new stack
-- Executing [999@from-internal:5] Macro("SIP/277-00000086", "dialout-trunk,1,999,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/277-00000086", "DIAL_TRUNK=1") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/277-00000086", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/277-00000086", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/277-00000086", "DIAL_NUMBER=999") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/277-00000086", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/277-00000086", "OUTBOUND_GROUP=OUT_1") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/277-00000086", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/277-00000086", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/277-00000086", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/277-00000086", "DIAL_TRUNK_OPTIONS=Tt") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/277-00000086", "outbound-callerid,1") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/277-00000086", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/277-00000086", "0?Set(REALCALLERIDNUM=277)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/277-00000086", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/277-00000086", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/277-00000086", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/277-00000086", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/277-00000086", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,14)
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/277-00000086", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/277-00000086", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/277-00000086", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/277-00000086", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:18] Set("SIP/277-00000086", "CDR(outbound_cnum)=277") in new stack
-- Executing [s@macro-outbound-callerid:19] Set("SIP/277-00000086", "CDR(outbound_cnam)=Топливная группа") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/277-00000086", "1?sub-flp-1,s,1()") in new stack
-- Executing [s@sub-flp-1:1] ExecIf("SIP/277-00000086", "1?Return()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/277-00000086", "OUTNUM=999") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/277-00000086", "custom=SIP/2811111") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/277-00000086", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/277-00000086", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/277-00000086", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/277-00000086", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/277-00000086", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/277-00000086", "1?Set(CONNECTEDLINE(num,i)=999)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/277-00000086", "1?Set(CONNECTEDLINE(name,i)=CID:277)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/277-00000086", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/277-00000086", "SIP/2811111/999,300,Tt") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
Audio is at 11584
Adding codec 100004 (alaw) to SDP
Adding codec 100003 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 195.64.217.115:5060:
INVITE sip:999@sip6.ural.net SIP/2.0
Via: SIP/2.0/UDP 10.23.1.13:5060;branch=z9hG4bK1b8d3539;rport
Max-Forwards: 70
From: "Топливная группа" <sip:2811111@sip6.ural.net>;tag=as2b15d48e
To: <sip:999@sip6.ural.net>
Contact: <sip:2811111@10.23.1.13:5060>
Call-ID: 26adab7755af2cf66e200b5c6128dbd5@sip6.ural.net
CSeq: 102 INVITE
User-Agent: FPBX-12.0.13(11.14.1)
Date: Tue, 02 Dec 2014 10:43:27 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 256