Не работают исходящие через FXO
Добавлено: 15 дек 2023, 13:34
Подключил шлюз HT813 к астериск, но вот уже сутки бьюсь, не могу победить исходящие через него. Входящие не могу попробовать, т.к. на данный момент на городском номере стоит безусловная переадресация. В шлюзе уже всякие разные комбинации настроек пробовал. На данный момент сбросил и установил. В статистике шлюза указано, что зарегистрировано. Но при исходящем мне астериск сообщает, что "все линии заняты". все возможные мануалы, ничего не могу понять. Прошу помощи. Скрины настроек шлюза и астериска прикладываю.
Консоль астериск:
Консоль астериск:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
Код: Выделить всё
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio CoS mark 5
-- Executing [89500000000@from-internal:1] Macro("PJSIP/505-00000044", "user-callerid,LIMIT,EXTERNAL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("PJSIP/505-00000044", "TOUCH_MONITOR=1702635862.68") in new stack
-- Executing [s@macro-user-callerid:2] Set("PJSIP/505-00000044", "CHANCONTEXT=") in new stack
-- Executing [s@macro-user-callerid:3] Set("PJSIP/505-00000044", "CHANCONTEXT=") in new stack
-- Executing [s@macro-user-callerid:4] Set("PJSIP/505-00000044", "CHANEXTENCONTEXT=505-00000044") in new stack
-- Executing [s@macro-user-callerid:5] Set("PJSIP/505-00000044", "CHANEXTEN=505-00000044") in new stack
-- Executing [s@macro-user-callerid:6] Set("PJSIP/505-00000044", "CALLERID(number)=505") in new stack
-- Executing [s@macro-user-callerid:7] Set("PJSIP/505-00000044", "AMPUSER=505") in new stack
-- Executing [s@macro-user-callerid:8] Set("PJSIP/505-00000044", "HOTDESCKCHAN=505-00000044") in new stack
-- Executing [s@macro-user-callerid:9] Set("PJSIP/505-00000044", "HOTDESKEXTEN=505") in new stack
-- Executing [s@macro-user-callerid:10] Set("PJSIP/505-00000044", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-user-callerid:11] ExecIf("PJSIP/505-00000044", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-user-callerid:13] GotoIf("PJSIP/505-00000044", "0?report") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("PJSIP/505-00000044", "1?Set(REALCALLERIDNUM=505)") in new stack
-- Executing [s@macro-user-callerid:15] Set("PJSIP/505-00000044", "AMPUSER=505") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("PJSIP/505-00000044", "0?limit") in new stack
-- Executing [s@macro-user-callerid:17] Set("PJSIP/505-00000044", "AMPUSERCIDNAME=Роман") in new stack
-- Executing [s@macro-user-callerid:18] ExecIf("PJSIP/505-00000044", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
-- Executing [s@macro-user-callerid:19] GotoIf("PJSIP/505-00000044", "0?report") in new stack
-- Executing [s@macro-user-callerid:20] Set("PJSIP/505-00000044", "AMPUSERCID=505") in new stack
-- Executing [s@macro-user-callerid:21] Set("PJSIP/505-00000044", "__DIAL_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-user-callerid:22] Set("PJSIP/505-00000044", "CALLERID(all)="Роман" <505>") in new stack
-- Executing [s@macro-user-callerid:23] ExecIf("PJSIP/505-00000044", "0?Set(CUSDIAL=)") in new stack
-- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(all)="Роман" <505>)") in new stack
-- Executing [s@macro-user-callerid:25] GotoIf("PJSIP/505-00000044", "0?limit") in new stack
-- Executing [s@macro-user-callerid:26] ExecIf("PJSIP/505-00000044", "1?Set(GROUP(concurrency_limit)=505)") in new stack
-- Executing [s@macro-user-callerid:27] NoOp("PJSIP/505-00000044", "Macro Depth is 1") in new stack
-- Executing [s@macro-user-callerid:28] GotoIf("PJSIP/505-00000044", "1?report2:macroerror") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] GotoIf("PJSIP/505-00000044", "1?continue") in new stack
-- Goto (macro-user-callerid,s,47)
-- Executing [s@macro-user-callerid:47] Set("PJSIP/505-00000044", "CALLERID(number)=505") in new stack
-- Executing [s@macro-user-callerid:48] Set("PJSIP/505-00000044", "CALLERID(name)=Роман") in new stack
-- Executing [s@macro-user-callerid:49] GotoIf("PJSIP/505-00000044", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:50] Set("PJSIP/505-00000044", "CDR(cnam)=Роман") in new stack
-- Executing [s@macro-user-callerid:51] Set("PJSIP/505-00000044", "CDR(cnum)=505") in new stack
-- Executing [s@macro-user-callerid:52] Set("PJSIP/505-00000044", "CHANNEL(language)=ru") in new stack
-- Executing [89500000000@from-internal:2] Gosub("PJSIP/505-00000044", "sub-record-check,s,1(out,89500000000,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("PJSIP/505-00000044", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("PJSIP/505-00000044", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("PJSIP/505-00000044", "NOW=1702635862") in new stack
-- Executing [s@sub-record-check:4] Set("PJSIP/505-00000044", "__DAY=15") in new stack
-- Executing [s@sub-record-check:5] Set("PJSIP/505-00000044", "__MONTH=12") in new stack
-- Executing [s@sub-record-check:6] Set("PJSIP/505-00000044", "__YEAR=2023") in new stack
-- Executing [s@sub-record-check:7] Set("PJSIP/505-00000044", "__TIMESTR=20231215-182422") in new stack
-- Executing [s@sub-record-check:8] Set("PJSIP/505-00000044", "__FROMEXTEN=505") in new stack
-- Executing [s@sub-record-check:9] Set("PJSIP/505-00000044", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("PJSIP/505-00000044", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("PJSIP/505-00000044", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("PJSIP/505-00000044", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("PJSIP/505-00000044", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("PJSIP/505-00000044", "3?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("PJSIP/505-00000044", "1?sub-record-check,out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] NoOp("PJSIP/505-00000044", "Outbound Recording Check from 505 to 89500000000") in new stack
-- Executing [out@sub-record-check:2] Set("PJSIP/505-00000044", "RECMODE=dontcare") in new stack
-- Executing [out@sub-record-check:3] ExecIf("PJSIP/505-00000044", "1?Goto(routewins)") in new stack
-- Goto (sub-record-check,out,7)
-- Executing [out@sub-record-check:7] Gosub("PJSIP/505-00000044", "recordcheck,1(dontcare,out,89500000000)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/505-00000044", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/505-00000044", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("PJSIP/505-00000044", "") in new stack
-- Executing [out@sub-record-check:8] Return("PJSIP/505-00000044", "") in new stack
-- Executing [89500000000@from-internal:3] Set("PJSIP/505-00000044", "_ROUTEID=3") in new stack
-- Executing [89500000000@from-internal:4] Set("PJSIP/505-00000044", "_ROUTENAME=73956600000") in new stack
-- Executing [89500000000@from-internal:5] Set("PJSIP/505-00000044", "MOHCLASS=default") in new stack
-- Executing [89500000000@from-internal:6] ExecIf("PJSIP/505-00000044", "1?Set(TRUNKCIDOVERRIDE=73956600000)") in new stack
-- Executing [89500000000@from-internal:7] Set("PJSIP/505-00000044", "_CALLERIDNAMEINTERNAL=Роман") in new stack
-- Executing [89500000000@from-internal:8] Set("PJSIP/505-00000044", "_CALLERIDNUMINTERNAL=505") in new stack
-- Executing [89500000000@from-internal:9] Set("PJSIP/505-00000044", "_EMAILNOTIFICATION=FALSE") in new stack
-- Executing [89500000000@from-internal:10] Set("PJSIP/505-00000044", "_NODEST=") in new stack
-- Executing [89500000000@from-internal:11] Macro("PJSIP/505-00000044", "dialout-trunk,3,+79500000000,,off") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("PJSIP/505-00000044", "DIAL_TRUNK=3") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("PJSIP/505-00000044", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
-- Executing [s@macro-dialout-trunk:3] GosubIf("PJSIP/505-00000044", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(num)=505)") in new stack
-- Executing [s@macro-dialout-trunk:5] GotoIf("PJSIP/505-00000044", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("PJSIP/505-00000044", "DIAL_NUMBER=+79500000000") in new stack
-- Executing [s@macro-dialout-trunk:7] Set("PJSIP/505-00000044", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
-- Executing [s@macro-dialout-trunk:8] Set("PJSIP/505-00000044", "OUTBOUND_GROUP=OUT_3") in new stack
-- Executing [s@macro-dialout-trunk:9] Set("PJSIP/505-00000044", "DIAL_TRUNK_OPTIONS=T") in new stack
-- Executing [s@macro-dialout-trunk:10] GotoIf("PJSIP/505-00000044", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:11] GotoIf("PJSIP/505-00000044", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:12] GotoIf("PJSIP/505-00000044", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:13] Macro("PJSIP/505-00000044", "outbound-callerid,3") in new stack
-- Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/505-00000044", "505") in new stack
-- Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/505-00000044", "") in new stack
-- Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/505-00000044", "off") in new stack
-- Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(name-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(num-pres)=)") in new stack
-- Executing [s@macro-outbound-callerid:6] Set("PJSIP/505-00000044", "HOTDESCKCHAN=505-00000044") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("PJSIP/505-00000044", "HOTDESKEXTEN=505") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("PJSIP/505-00000044", "HOTDESKCALL=0") in new stack
-- Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/505-00000044", "0?Set(HOTDESKCALL=1)") in new stack
-- Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(name)=)") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("PJSIP/505-00000044", "ALLOWTHISROUTE=NO") in new stack
-- Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/505-00000044", "0?Set(ALLOWTHISROUTE=YES)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/505-00000044", "0?Hangup()") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/505-00000044", "0?Set(REALCALLERIDNUM=505)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/505-00000044", "0?Set(AMPUSER=505)") in new stack
-- Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/505-00000044", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,20)
-- Executing [s@macro-outbound-callerid:20] Set("PJSIP/505-00000044", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:21] Set("PJSIP/505-00000044", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:22] ExecIf("PJSIP/505-00000044", "0?Set(EMERGENCYCID=)") in new stack
-- Executing [s@macro-outbound-callerid:23] Set("PJSIP/505-00000044", "TRUNKOUTCID=73956600000") in new stack
-- Executing [s@macro-outbound-callerid:24] GotoIf("PJSIP/505-00000044", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,30)
-- Executing [s@macro-outbound-callerid:30] ExecIf("PJSIP/505-00000044", "1?Set(CALLERID(all)=73956600000)") in new stack
-- Executing [s@macro-outbound-callerid:31] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:32] ExecIf("PJSIP/505-00000044", "1?Set(CALLERID(all)=73956600000)") in new stack
-- Executing [s@macro-outbound-callerid:33] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(all)=505)") in new stack
-- Executing [s@macro-outbound-callerid:34] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(all)=505)") in new stack
-- Executing [s@macro-outbound-callerid:35] Set("PJSIP/505-00000044", "TIOHIDE=no") in new stack
-- Executing [s@macro-outbound-callerid:36] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:37] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:38] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(name-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:39] ExecIf("PJSIP/505-00000044", "0?Set(CALLERID(num-pres)=prohib_passed_screen)") in new stack
-- Executing [s@macro-outbound-callerid:40] Set("PJSIP/505-00000044", "CDR(outbound_cnum)=73956600000") in new stack
-- Executing [s@macro-outbound-callerid:41] Set("PJSIP/505-00000044", "CDR(outbound_cnam)=") in new stack
-- Executing [s@macro-dialout-trunk:14] GosubIf("PJSIP/505-00000044", "0?sub-flp-3,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:15] Set("PJSIP/505-00000044", "OUTNUM=+79500000000") in new stack
-- Executing [s@macro-dialout-trunk:16] Set("PJSIP/505-00000044", "custom=PJSIP") in new stack
-- Executing [s@macro-dialout-trunk:17] ExecIf("PJSIP/505-00000044", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
-- Executing [s@macro-dialout-trunk:18] ExecIf("PJSIP/505-00000044", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:19] Macro("PJSIP/505-00000044", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("PJSIP/505-00000044", "") in new stack
-- Executing [s@macro-dialout-trunk:20] GotoIf("PJSIP/505-00000044", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:21] ExecIf("PJSIP/505-00000044", "1?Set(CONNECTEDLINE(num,i)=+79500000000)") in new stack
-- Executing [s@macro-dialout-trunk:22] ExecIf("PJSIP/505-00000044", "1?Set(CONNECTEDLINE(name,i)=CID:73956600000)") in new stack
-- Executing [s@macro-dialout-trunk:23] ExecIf("PJSIP/505-00000044", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)73956600000)") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("PJSIP/505-00000044", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:25] ExecIf("PJSIP/505-00000044", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
-- Executing [s@macro-dialout-trunk:26] Set("PJSIP/505-00000044", "HASH(__SIPHEADERS,Alert-Info)=unset") in new stack
-- Executing [s@macro-dialout-trunk:27] Dial("PJSIP/505-00000044", "PJSIP/+79500000000@73956600000,300,Tb(func-apply-sipheaders^s^1,(3))U(sub-send-obroute-email^+79500000000^89500000000^3^1702635862^^73956600000)") in new stack
-- PJSIP/73956600000-00000045 Internal Gosub(func-apply-sipheaders,s,1(3)) start
-- Executing [s@func-apply-sipheaders:1] NoOp("PJSIP/73956600000-00000045", "Applying SIP Headers to channel PJSIP/73956600000-00000045") in new stack
-- Executing [s@func-apply-sipheaders:2] Set("PJSIP/73956600000-00000045", "TECH=PJSIP") in new stack
-- Executing [s@func-apply-sipheaders:3] Set("PJSIP/73956600000-00000045", "SIPHEADERKEYS=Alert-Info") in new stack
-- Executing [s@func-apply-sipheaders:4] While("PJSIP/73956600000-00000045", "1") in new stack
-- Executing [s@func-apply-sipheaders:5] Set("PJSIP/73956600000-00000045", "sipheader=unset") in new stack
-- Executing [s@func-apply-sipheaders:6] ExecIf("PJSIP/73956600000-00000045", "1?Set(PJSIP_HEADER(remove,Alert-Info)=)") in new stack
[2023-12-15 18:24:22] ERROR[520889]: res_pjsip_header_funcs.c:722 remove_header: No headers had been previously added to this session.
-- Executing [s@func-apply-sipheaders:7] ExecIf("PJSIP/73956600000-00000045", "0?Set(sipheader=<http://127.0.0.1>;info=unset)") in new stack
-- Executing [s@func-apply-sipheaders:8] ExecIf("PJSIP/73956600000-00000045", "0?Set(sipheader=<http://127.0.0.1>unset)") in new stack
-- Executing [s@func-apply-sipheaders:9] ExecIf("PJSIP/73956600000-00000045", "0?Set(PJSIP_HEADER(add,Alert-Info)=unset)") in new stack
-- Executing [s@func-apply-sipheaders:10] EndWhile("PJSIP/73956600000-00000045", "") in new stack
-- Executing [s@func-apply-sipheaders:4] While("PJSIP/73956600000-00000045", "0") in new stack
-- Executing [s@func-apply-sipheaders:11] Return("PJSIP/73956600000-00000045", "") in new stack
== Spawn extension (from-pstn, 89500000000, 1) exited non-zero on 'PJSIP/73956600000-00000045'
-- PJSIP/73956600000-00000045 Internal Gosub(func-apply-sipheaders,s,1(3)) complete GOSUB_RETVAL=
-- Called PJSIP/+79500000000@73956600000
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:28] NoOp("PJSIP/505-00000044", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
-- Executing [s@macro-dialout-trunk:29] GotoIf("PJSIP/505-00000044", "0?continue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("PJSIP/505-00000044", "RC=21") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("PJSIP/505-00000044", "21,1") in new stack
-- Goto (macro-dialout-trunk,21,1)
-- Executing [21@macro-dialout-trunk:1] Goto("PJSIP/505-00000044", "continue,1") in new stack
-- Goto (macro-dialout-trunk,continue,1)
-- Executing [continue@macro-dialout-trunk:1] NoOp("PJSIP/505-00000044", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
-- Executing [continue@macro-dialout-trunk:2] ExecIf("PJSIP/505-00000044", "1?Set(CALLERID(number)=505)") in new stack
-- Executing [89500000000@from-internal:12] Macro("PJSIP/505-00000044", "outisbusy,") in new stack
-- Executing [s@macro-outisbusy:1] Playback("PJSIP/505-00000044", "all-circuits-busy-now&please-try-call-later") in new stack
-- <PJSIP/505-00000044> Playing 'all-circuits-busy-now.ulaw' (language 'ru')
== Spawn extension (macro-outisbusy, s, 1) exited non-zero on 'PJSIP/505-00000044' in macro 'outisbusy'
== Spawn extension (from-internal, 89500000000, 12) exited non-zero on 'PJSIP/505-00000044'
-- Executing [h@from-internal:1] Macro("PJSIP/505-00000044", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/505-00000044", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/505-00000044", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("PJSIP/505-00000044", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/505-00000044' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/505-00000044'