VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Проблема со звонками из филиала

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

Ответить
uncle_smith
Сообщения: 6
Зарегистрирован: 25 дек 2018, 19:49

Проблема со звонками из филиала

Сообщение uncle_smith »

Друзья, прошу вашей помощи. Есть головной офис ГО и 2 филиала А и Б. Звонки на город и сотовые должны идти через ГО.
На филиале А настроен Elastix, поднят транк до ГО и прописаны исх. маршруты на внутренние, городские и сотовые номера. Все работает корректно.
На филиале Б настроен Free pbx, поднят транк до ГО и прописаны исх. маршруты на внутренние, городские и сотовые номера.
Проблема в том, что из филиала Б работают только звонки на внутренние номера ГО. При этом не работают звонки на город и сотовые номера. Странность в том, что при дебаге, на стороне ГО ничего не происходит при попытке звонка на город или сотку из Б.

Маршруты на А и Б настроены идентично.

Прилагаю дебаг звонка на внутренний номер ГО (звонок успешен)

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

 == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [255@from-internal:1] Macro("SIP/4040-000893cd", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/4040-000893cd", "TOUCH_MONITOR=1545755120.564316") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/4040-000893cd", "AMPUSER=4040") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/4040-000893cd", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/4040-000893cd", "1?Set(REALCALLERIDNUM=4040)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/4040-000893cd", "AMPUSER=4040") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/4040-000893cd", "0?limit") in new stack
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2018-12-25 22:25:20'},'four akb','4040','','','','255','from-internal','SIP/4040-000893cd','','',3,'','1545755120.564316','1545755120.564316','','','')]
    -- Executing [s@macro-user-callerid:7] Set("SIP/4040-000893cd", "AMPUSERCIDNAME=four akb") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/4040-000893cd", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/4040-000893cd", "AMPUSERCID=4040") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/4040-000893cd", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/4040-000893cd", "CALLERID(all)="four akb" <4040>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/4040-000893cd", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/4040-000893cd", "1?Set(GROUP(concurrency_limit)=4040)") in new stack
    -- Executing [s@macro-user-callerid:14] GosubIf("SIP/4040-000893cd", "7?sub-ccss,s,1(from-internal,255)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("SIP/4040-000893cd", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("SIP/4040-000893cd", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("SIP/4040-000893cd", "0?monitor_config,1(from-internal,255):monitor_default,1(from-internal,255)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/4040-000893cd", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/4040-000893cd", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("SIP/4040-000893cd", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:15] ExecIf("SIP/4040-000893cd", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("SIP/4040-000893cd", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] Set("SIP/4040-000893cd", "CALLERID(number)=4040") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/4040-000893cd", "CALLERID(name)=four akb") in new stack
    -- Executing [s@macro-user-callerid:31] Set("SIP/4040-000893cd", "CDR(cnum)=4040") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/4040-000893cd", "CDR(cnam)=four akb") in new stack
    -- Executing [s@macro-user-callerid:33] Set("SIP/4040-000893cd", "CHANNEL(language)=en") in new stack
    -- Executing [255@from-internal:2] Set("SIP/4040-000893cd", "INTRACOMPANYROUTE=YES") in new stack
    -- Executing [255@from-internal:3] Set("SIP/4040-000893cd", "MOHCLASS=default") in new stack
    -- Executing [255@from-internal:4] Set("SIP/4040-000893cd", "_NODEST=") in new stack
    -- Executing [255@from-internal:5] Gosub("SIP/4040-000893cd", "sub-record-check,s,1(out,255,)") in new stack
    -- Executing [s@sub-record-check:1] Set("SIP/4040-000893cd", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:2] GotoIf("SIP/4040-000893cd", "1?check") in new stack
    -- Goto (sub-record-check,s,7)
    -- Executing [s@sub-record-check:7] Set("SIP/4040-000893cd", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:8] GotoIf("SIP/4040-000893cd", "1?next") in new stack
    -- Goto (sub-record-check,s,11)
    -- Executing [s@sub-record-check:11] ExecIf("SIP/4040-000893cd", "0?Return()") in new stack
    -- Executing [s@sub-record-check:12] ExecIf("SIP/4040-000893cd", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("SIP/4040-000893cd", "0?out,1") in new stack
    -- Executing [s@sub-record-check:14] Set("SIP/4040-000893cd", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/4040-000893cd", "NOW=1545755120") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/4040-000893cd", "__DAY=25") in new stack
    -- Executing [s@sub-record-check:17] Set("SIP/4040-000893cd", "__MONTH=12") in new stack
    -- Executing [s@sub-record-check:18] Set("SIP/4040-000893cd", "__YEAR=2018") in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/4040-000893cd", "__TIMESTR=20181225-222520") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/4040-000893cd", "__FROMEXTEN=4040") in new stack
    -- Executing [s@sub-record-check:21] Set("SIP/4040-000893cd", "__CALLFILENAME=out-255-4040-20181225-222520-1545755120.564316") in new stack
    -- Executing [s@sub-record-check:22] Goto("SIP/4040-000893cd", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("SIP/4040-000893cd", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("SIP/4040-000893cd", "0?record,1(exten,255,4040)") in new stack
    -- Executing [out@sub-record-check:3] Return("SIP/4040-000893cd", "") in new stack
    -- Executing [255@from-internal:6] Macro("SIP/4040-000893cd", "dialout-trunk,2,255,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/4040-000893cd", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/4040-000893cd", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/4040-000893cd", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/4040-000893cd", "DIAL_NUMBER=255") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/4040-000893cd", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/4040-000893cd", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/4040-000893cd", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/4040-000893cd", "1?skipoutcid") in new stack
    -- Goto (macro-dialout-trunk,s,12)
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/4040-000893cd", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/4040-000893cd", "OUTNUM=255") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/4040-000893cd", "custom=SIP/AA") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/4040-000893cd", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Ttr)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/4040-000893cd", "0?Set(DIAL_TRUNK_OPTIONS=TtrM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/4040-000893cd", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/4040-000893cd", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/4040-000893cd", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/4040-000893cd", "1?Set(CONNECTEDLINE(num,i)=255)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/4040-000893cd", "1?Set(CONNECTEDLINE(name,i)=CID:4040)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/4040-000893cd", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/4040-000893cd", "SIP/AA/255,300,Ttr") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2018-12-25 22:25:20'},'','','','','','s','from-trunk','SIP/AA-000893ce','','',3,'','1545755120.564317','1545755120.564316','','','')]
    -- Called SIP/AA/255
    -- SIP/AA-000893ce is ringing
А это дебаг неудачного звонка на город:

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

 == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [2752566@from-internal:1] Macro("SIP/4040-000893b8", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/4040-000893b8", "TOUCH_MONITOR=1545754854.564295") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/4040-000893b8", "AMPUSER=4040") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/4040-000893b8", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/4040-000893b8", "1?Set(REALCALLERIDNUM=4040)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/4040-000893b8", "AMPUSER=4040") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/4040-000893b8", "0?limit") in new stack
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2018-12-25 22:20:54'},'four akb','4040','','','','2752566','from-internal','SIP/4040-000893b8','','',3,'','1545754854.564295','1545754854.564295','','','')]
    -- Executing [s@macro-user-callerid:7] Set("SIP/4040-000893b8", "AMPUSERCIDNAME=four akb") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/4040-000893b8", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/4040-000893b8", "AMPUSERCID=4040") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/4040-000893b8", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/4040-000893b8", "CALLERID(all)="four akb" <4040>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/4040-000893b8", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/4040-000893b8", "1?Set(GROUP(concurrency_limit)=4040)") in new stack
    -- Executing [s@macro-user-callerid:14] GosubIf("SIP/4040-000893b8", "7?sub-ccss,s,1(from-internal,2752566)") in new stack
    -- Executing [s@sub-ccss:1] ExecIf("SIP/4040-000893b8", "0?Return()") in new stack
    -- Executing [s@sub-ccss:2] Set("SIP/4040-000893b8", "CCSS_SETUP=TRUE") in new stack
    -- Executing [s@sub-ccss:3] GosubIf("SIP/4040-000893b8", "0?monitor_config,1(from-internal,2752566):monitor_default,1(from-internal,2752566)") in new stack
    -- Executing [monitor_default@sub-ccss:1] GotoIf("SIP/4040-000893b8", "0?is_exten") in new stack
    -- Executing [monitor_default@sub-ccss:2] StackPop("SIP/4040-000893b8", "") in new stack
    -- Executing [monitor_default@sub-ccss:3] Return("SIP/4040-000893b8", "FALSE") in new stack
    -- Executing [s@macro-user-callerid:15] ExecIf("SIP/4040-000893b8", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("SIP/4040-000893b8", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] Set("SIP/4040-000893b8", "CALLERID(number)=4040") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/4040-000893b8", "CALLERID(name)=four akb") in new stack
    -- Executing [s@macro-user-callerid:31] Set("SIP/4040-000893b8", "CDR(cnum)=4040") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/4040-000893b8", "CDR(cnam)=four akb") in new stack
    -- Executing [s@macro-user-callerid:33] Set("SIP/4040-000893b8", "CHANNEL(language)=en") in new stack
    -- Executing [2752566@from-internal:2] Set("SIP/4040-000893b8", "MOHCLASS=default") in new stack
    -- Executing [2752566@from-internal:3] Set("SIP/4040-000893b8", "_NODEST=") in new stack
    -- Executing [2752566@from-internal:4] Gosub("SIP/4040-000893b8", "sub-record-check,s,1(out,2752566,)") in new stack
    -- Executing [s@sub-record-check:1] Set("SIP/4040-000893b8", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:2] GotoIf("SIP/4040-000893b8", "1?check") in new stack
    -- Goto (sub-record-check,s,7)
    -- Executing [s@sub-record-check:7] Set("SIP/4040-000893b8", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:8] GotoIf("SIP/4040-000893b8", "1?next") in new stack
    -- Goto (sub-record-check,s,11)
    -- Executing [s@sub-record-check:11] ExecIf("SIP/4040-000893b8", "0?Return()") in new stack
    -- Executing [s@sub-record-check:12] ExecIf("SIP/4040-000893b8", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("SIP/4040-000893b8", "0?out,1") in new stack
    -- Executing [s@sub-record-check:14] Set("SIP/4040-000893b8", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/4040-000893b8", "NOW=1545754854") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/4040-000893b8", "__DAY=25") in new stack
    -- Executing [s@sub-record-check:17] Set("SIP/4040-000893b8", "__MONTH=12") in new stack
    -- Executing [s@sub-record-check:18] Set("SIP/4040-000893b8", "__YEAR=2018") in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/4040-000893b8", "__TIMESTR=20181225-222054") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/4040-000893b8", "__FROMEXTEN=4040") in new stack
    -- Executing [s@sub-record-check:21] Set("SIP/4040-000893b8", "__CALLFILENAME=out-2752566-4040-20181225-222054-1545754854.564295") in new stack
    -- Executing [s@sub-record-check:22] Goto("SIP/4040-000893b8", "out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] ExecIf("SIP/4040-000893b8", "1?Set(__REC_POLICY_MODE=dontcare)") in new stack
    -- Executing [out@sub-record-check:2] GosubIf("SIP/4040-000893b8", "0?record,1(exten,2752566,4040)") in new stack
    -- Executing [out@sub-record-check:3] Return("SIP/4040-000893b8", "") in new stack
    -- Executing [2752566@from-internal:5] Macro("SIP/4040-000893b8", "dialout-trunk,2,2752566,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/4040-000893b8", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/4040-000893b8", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/4040-000893b8", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/4040-000893b8", "DIAL_NUMBER=2752566") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/4040-000893b8", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/4040-000893b8", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/4040-000893b8", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/4040-000893b8", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/4040-000893b8", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/4040-000893b8", "outbound-callerid,2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/4040-000893b8", "0?Set(CALLERPRES()=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/4040-000893b8", "0?Set(REALCALLERIDNUM=4040)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/4040-000893b8", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/4040-000893b8", "USEROUTCID=7273500707") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/4040-000893b8", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/4040-000893b8", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/4040-000893b8", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,14)
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/4040-000893b8", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/4040-000893b8", "1?Set(CALLERID(all)=7273500707)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/4040-000893b8", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/4040-000893b8", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:18] Set("SIP/4040-000893b8", "CDR(outbound_cnum)=7273500707") in new stack
    -- Executing [s@macro-outbound-callerid:19] Set("SIP/4040-000893b8", "CDR(outbound_cnam)=") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/4040-000893b8", "0?sub-flp-2,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/4040-000893b8", "OUTNUM=2752566") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/4040-000893b8", "custom=SIP/AA") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/4040-000893b8", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/4040-000893b8", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/4040-000893b8", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/4040-000893b8", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/4040-000893b8", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/4040-000893b8", "1?Set(CONNECTEDLINE(num,i)=2752566)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/4040-000893b8", "1?Set(CONNECTEDLINE(name,i)=CID:7273500707)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/4040-000893b8", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/4040-000893b8", "SIP/AA/2752566,300,Tt") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_START',{ts '2018-12-25 22:20:54'},'','','','','','s','from-trunk','SIP/AA-000893b9','','',3,'','1545754854.564296','1545754854.564295','','','')]
    -- Called SIP/AA/2752566
 > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2018-12-25 22:20:55'},'CID:7273500707','2752566','','','','2752566','from-trunk','SIP/AA-000893b9','AppDial','(Outgoing Line)',3,'','1545754854.564296','1545754854.564295','','','')]
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:23] NoOp("SIP/4040-000893b8", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1") in new stack
    -- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/4040-000893b8", "0?continue,1:s-CHANUNAVAIL,1") in new stack
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2018-12-25 22:20:55'},'CID:7273500707','2752566','','','','2752566','from-trunk','SIP/AA-000893b9','AppDial','(Outgoing Line)',3,'','1545754854.564296','1545754854.564295','','','')]
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/4040-000893b8", "RC=1") in new stack
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/4040-000893b8", "1,1") in new stack
    -- Goto (macro-dialout-trunk,1,1)
    -- Executing [1@macro-dialout-trunk:1] Goto("SIP/4040-000893b8", "continue,1") in new stack
    -- Goto (macro-dialout-trunk,continue,1)
    -- Executing [continue@macro-dialout-trunk:1] NoOp("SIP/4040-000893b8", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 1 - failing through to other trunks") in new stack
    -- Executing [continue@macro-dialout-trunk:2] Set("SIP/4040-000893b8", "CALLERID(number)=4040") in new stack
    -- Executing [2752566@from-internal:6] Macro("SIP/4040-000893b8", "outisbusy,") in new stack
    -- Executing [s@macro-outisbusy:1] Progress("SIP/4040-000893b8", "") in new stack
    -- Executing [s@macro-outisbusy:2] GotoIf("SIP/4040-000893b8", "0?emergency,1") in new stack
    -- Executing [s@macro-outisbusy:3] GotoIf("SIP/4040-000893b8", "0?intracompany,1") in new stack
    -- Executing [s@macro-outisbusy:4] Playback("SIP/4040-000893b8", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
    -- <SIP/4040-000893b8> Playing 'all-circuits-busy-now.gsm' (language 'en')
       > 0x33cc2b0 -- Probation passed - setting RTP source address to 192.168.6.213:12518
    -- <SIP/4040-000893b8> Playing 'pls-try-call-later.gsm' (language 'en')
    -- Executing [s@macro-outisbusy:5] Congestion("SIP/4040-000893b8", "20") in new stack
[2018-12-25 22:20:59] WARNING[16661][C-00046812]: channel.c:4816 ast_prod: Prodding channel 'SIP/4040-000893b8' failed
  == Spawn extension (macro-outisbusy, s, 5) exited non-zero on 'SIP/4040-000893b8' in macro 'outisbusy'
  == Spawn extension (from-internal, 2752566, 6) exited non-zero on 'SIP/4040-000893b8'
    -- Executing [h@from-internal:1] Hangup("SIP/4040-000893b8", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/4040-000893b8'
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('HANGUP',{ts '2018-12-25 22:20:59'},'','4040','4040','','2752566','h','from-internal','SIP/4040-000893b8','','',3,'','1545754854.564295','1545754854.564295','','','')]
       > [INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid,cnum,cnam,outbound_cnum) VALUES ({ ts '2018-12-25 22:20:54' },'4040','4040','2752566','from-internal','SIP/4040-000893b8','SIP/AA-000893b9','Congestion','20',5,0,'FAILED',3,'1545754854.564295','4040','four akb','7273500707')]
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('CHAN_END',{ts '2018-12-25 22:20:59'},'','4040','4040','','2752566','h','from-internal','SIP/4040-000893b8','','',3,'','1545754854.564295','1545754854.564295','','','')]
       > [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES ('LINKEDID_END',{ts '2018-12-25 22:20:59'},'','4040','4040','','2752566','h','from-internal','SIP/4040-000893b8','','',3,'','1545754854.564295','1545754854.564295','','','')]
april22
Сообщения: 2187
Зарегистрирован: 09 июл 2012, 09:47

Re: Проблема со звонками из филиала

Сообщение april22 »

А кто такой sip/aa?
И может посмотрим что происходит в логах ГО, когда звонят в город из неудачного офиса?
Своими вопросами , вы загоняете меня в ГУГЛЬ.
Аватара пользователя
Kroteg
Сообщения: 200
Зарегистрирован: 11 янв 2018, 13:51

Re: Проблема со звонками из филиала

Сообщение Kroteg »

Номер отдается верно? Маршрут правильно прописан?
Почему при звонке на внутренние номера - контекст from-trunk, а для городских - from-internal и при этом это через один и тот же транк?
Нигде не перепутана настройка Route Type: Intra-Company в исходящих маршрутах?
Изображение
ded
Сообщения: 15625
Зарегистрирован: 26 авг 2010, 19:00

Re: Проблема со звонками из филиала

Сообщение ded »

april22 писал(а):А кто такой sip/aa?
+++
april22 писал(а):И может посмотрим что происходит в логах ГО, когда звонят в город из неудачного офиса?
ТС вроде отразил логи ГО при звонке в город на /2752566 из неудачного офиса.

И мы видим при удачном вызове с SIP/4040 через загадочный АА - SIP/AA/255
а неудачный - через тот же загадочный SIP/AA/2752566

Вангую: АА - это аналоговый комбинированный шлюз, половина портов FXS, там аналоговые телефоны с номерами 250, 251, 252, 253,...
и порты FXO, куда воткнуты городские линии.

У меня дроугой вопрос к ТС: кто вам собирал/настраивал это хозяйство? Налицо непонимание как это работает, обычно встречается у эксплуатационщиков.
Обратитесь к авторам этой схемы, они всё поправят. Иначе мы тут просто зря будем разбирать что не так, и обучать вас лично, по ходу пьесы, основам диал-плана.
uncle_smith
Сообщения: 6
Зарегистрирован: 25 дек 2018, 19:49

Re: Проблема со звонками из филиала

Сообщение uncle_smith »

Друзья, спасибо большое за оперативный отклик.

Да, хозяйство досталось как есть, приходится копаться.

Проблему в итоге решил - в диалплане ГО не хватало контекста для обработки звонков с неудачного филиала. Кроме того был неправильно настроен транк между ГО и неудачным филиалом.

P.S. АА - это имя сип транка, связывающего ГО и неудачный филиал.

Еще раз благодарю за помощь!
uncle_smith
Сообщения: 6
Зарегистрирован: 25 дек 2018, 19:49

Re: Проблема со звонками из филиала

Сообщение uncle_smith »

april22 писал(а):А кто такой sip/aa?
И может посмотрим что происходит в логах ГО, когда звонят в город из неудачного офиса?
Изначально и была странность в том, что дебаг ГО тупо молчал при неудачном звонке. Видимо из-за некорректного диалплана он ничего и не показывал.
Ответить
© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH