Это было проблемой при каждой установке, которую я когда-либо собирал, и мог быстро найти ответ в Google. Однако я не создавал freepbx более 2 лет и не могу вспомнить, как его решить, и не могу найти ответ.
При всех исходящих звонках я получаю голосовую подсказку "Все каналы заняты"
FreePBX 14.0.13.24 звездочка 13.30.0 Centos 6.5
Исходящий
Trunk Name: Exetel
host=58.96.1.2
context=from-trunk
type=peer
qualify=no
reinvite=yes
username=***********
secret=***********
disallow=all
allow=ulaw&alaw
trustrpid=yes
sendrpid=yes
dtmfmode=rfc2833
Входящий
USER Context: 086******
host=sip1.exetel.com.au
secret=***********
type=peer
insecure=very
username=***********
nat=yes
dtmfmode=rfc2833
disallow=all
allow=ulaw,alaw,gsm,g726
журналы
netsock2.c: Using SIP RTP TOS bits 184
netsock2.c: Using SIP RTP CoS mark 5
pbx.c: Executing [**outgoing phone**@from-internal:1] Macro("SIP/101-00000006", "user-callerid,LIMIT,EXTERNAL,") in new stack
pbx.c: Executing [s@macro-user-callerid:1] Set("SIP/101-00000006", "TOUCH_MONITOR=1580512305.30") in new stack
pbx.c: Executing [s@macro-user-callerid:2] Set("SIP/101-00000006", "AMPUSER=101") in new stack
pbx.c: Executing [s@macro-user-callerid:3] GotoIf("SIP/101-00000006", "0?report") in new stack
pbx.c: Executing [s@macro-user-callerid:4] ExecIf("SIP/101-00000006", "1?Set(REALCALLERIDNUM=101)") in new stack
pbx.c: Executing [s@macro-user-callerid:5] Set("SIP/101-00000006", "AMPUSER=101") in new stack
pbx.c: Executing [s@macro-user-callerid:6] GotoIf("SIP/101-00000006", "0?limit") in new stack
pbx.c: Executing [s@macro-user-callerid:7] Set("SIP/101-00000006", "AMPUSERCIDNAME=Ben") in new stack
pbx.c: Executing [s@macro-user-callerid:8] ExecIf("SIP/101-00000006", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
pbx.c: Executing [s@macro-user-callerid:9] GotoIf("SIP/101-00000006", "0?report") in new stack
pbx.c: Executing [s@macro-user-callerid:10] Set("SIP/101-00000006", "AMPUSERCID=101") in new stack
pbx.c: Executing [s@macro-user-callerid:11] Set("SIP/101-00000006", "__DIAL_OPTIONS=Ttr") in new stack
pbx.c: Executing [s@macro-user-callerid:12] Set("SIP/101-00000006", "CALLERID(all)="Ben" <101>") in new stack
pbx.c: Executing [s@macro-user-callerid:13] ExecIf("SIP/101-00000006", "0?Set(CALLERID(all)=EXTERNAL)") in new stack
pbx.c: Executing [s@macro-user-callerid:14] GotoIf("SIP/101-00000006", "0?limit") in new stack
pbx.c: Executing [s@macro-user-callerid:15] ExecIf("SIP/101-00000006", "1?Set(GROUP(concurrency_limit)=101)") in new stack
pbx.c: Executing [s@macro-user-callerid:16] NoOp("SIP/101-00000006", "Macro Depth is 1") in new stack
pbx.c: Executing [s@macro-user-callerid:17] GotoIf("SIP/101-00000006", "1?report2:macroerror") in new stack
pbx_builtins.c: Goto (macro-user-callerid,s,18)
pbx.c: Executing [s@macro-user-callerid:18] GotoIf("SIP/101-00000006", "1?continue") in new stack
pbx_builtins.c: Goto (macro-user-callerid,s,36)
pbx.c: Executing [s@macro-user-callerid:36] Set("SIP/101-00000006", "CALLERID(number)=101") in new stack
pbx.c: Executing [s@macro-user-callerid:37] Set("SIP/101-00000006", "CALLERID(name)=Ben") in new stack
pbx.c: Executing [s@macro-user-callerid:38] GotoIf("SIP/101-00000006", "0?cnum") in new stack
pbx.c: Executing [s@macro-user-callerid:39] Set("SIP/101-00000006", "CDR(cnam)=Ben") in new stack
pbx.c: Executing [s@macro-user-callerid:40] Set("SIP/101-00000006", "CDR(cnum)=101") in new stack
pbx.c: Executing [s@macro-user-callerid:41] Set("SIP/101-00000006", "CHANNEL(language)=en") in new stack
pbx.c: Executing [**OUTGOING PHONE NUMBER**@from-internal:2] Gosub("SIP/101-00000006", "sub-record-check,s,1(out,**OUTGOING PHONE NUMBER**,dontcare)") in new stack
pbx.c: Executing [s@sub-record-check:1] GotoIf("SIP/101-00000006", "0?initialized") in new stack
pbx.c: Executing [s@sub-record-check:2] Set("SIP/101-00000006", "__REC_STATUS=INITIALIZED") in new stack
pbx.c: Executing [s@sub-record-check:3] Set("SIP/101-00000006", "NOW=1580512305") in new stack
pbx.c: Executing [s@sub-record-check:4] Set("SIP/101-00000006", "__DAY=01") in new stack
pbx.c: Executing [s@sub-record-check:5] Set("SIP/101-00000006", "__MONTH=02") in new stack
pbx.c: Executing [s@sub-record-check:6] Set("SIP/101-00000006", "__YEAR=2020") in new stack
pbx.c: Executing [s@sub-record-check:7] Set("SIP/101-00000006", "__TIMESTR=20200201-071145") in new stack
pbx.c: Executing [s@sub-record-check:8] Set("SIP/101-00000006", "__FROMEXTEN=101") in new stack
pbx.c: Executing [s@sub-record-check:9] Set("SIP/101-00000006", "__MON_FMT=wav") in new stack
pbx.c: Executing [s@sub-record-check:10] NoOp("SIP/101-00000006", "Recordings initialized") in new stack
pbx.c: Executing [s@sub-record-check:11] ExecIf("SIP/101-00000006", "0?Set(ARG3=dontcare)") in new stack
pbx.c: Executing [s@sub-record-check:12] Set("SIP/101-00000006", "REC_POLICY_MODE_SAVE=") in new stack
pbx.c: Executing [s@sub-record-check:13] ExecIf("SIP/101-00000006", "0?Set(REC_STATUS=NO)") in new stack
pbx.c: Executing [s@sub-record-check:14] GotoIf("SIP/101-00000006", "3?checkaction") in new stack
pbx_builtins.c: Goto (sub-record-check,s,17)
pbx.c: Executing [s@sub-record-check:17] GotoIf("SIP/101-00000006", "1?sub-record-check,out,1") in new stack
pbx_builtins.c: Goto (sub-record-check,out,1)
pbx.c: Executing [out@sub-record-check:1] NoOp("SIP/101-00000006", "Outbound Recording Check from 101 to 0405652555") in new stack
pbx.c: Executing [out@sub-record-check:2] Set("SIP/101-00000006", "RECMODE=dontcare") in new stack
pbx.c: Executing [out@sub-record-check:3] ExecIf("SIP/101-00000006", "1?Goto(routewins)") in new stack
pbx_builtins.c: Goto (sub-record-check,out,7)
pbx.c: Executing [out@sub-record-check:7] Gosub("SIP/101-00000006", "recordcheck,1(dontcare,out,0405652555)") in new stack
pbx.c: Executing [recordcheck@sub-record-check:1] NoOp("SIP/101-00000006", "Starting recording check against dontcare") in new stack
pbx.c: Executing [recordcheck@sub-record-check:2] Goto("SIP/101-00000006", "dontcare") in new stack
pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
pbx.c: Executing [recordcheck@sub-record-check:3] Return("SIP/101-00000006", "") in new stack
pbx.c: Executing [out@sub-record-check:8] Return("SIP/101-00000006", "") in new stack
pbx.c: Executing [**OUTGOING PHONE NUMBER**@from-internal:3] Set("SIP/101-00000006", "MOHCLASS=default") in new stack
pbx.c: Executing [**OUTGOING PHONE NUMBER**@from-internal:4] Set("SIP/101-00000006", "_NODEST=") in new stack
pbx.c: Executing [**OUTGOING PHONE NUMBER**@from-internal:5] Macro("SIP/101-00000006", "dialout-trunk,2,0405652555,,on") in new stack
pbx.c: Executing [s@macro-dialout-trunk:1] Set("SIP/101-00000006", "DIAL_TRUNK=2") in new stack
pbx.c: Executing [s@macro-dialout-trunk:2] ExecIf("SIP/101-00000006", "0?Set(DIAL_OPTIONS=tr)") in new stack
pbx.c: Executing [s@macro-dialout-trunk:3] GosubIf("SIP/101-00000006", "0?sub-pincheck,s,1()") in new stack
pbx.c: Executing [s@macro-dialout-trunk:4] ExecIf("SIP/101-00000006", "0?Set(CALLERID(num)=101)") in new stack
pbx.c: Executing [s@macro-dialout-trunk:5] GotoIf("SIP/101-00000006", "0?disabletrunk,1") in new stack
pbx.c: Executing [s@macro-dialout-trunk:6] Set("SIP/101-00000006", "DIAL_NUMBER=**OUTGOING PHONE NUMBER**") in new stack
pbx.c: Executing [s@macro-dialout-trunk:7] Set("SIP/101-00000006", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
pbx.c: Executing [s@macro-dialout-trunk:8] Set("SIP/101-00000006", "OUTBOUND_GROUP=OUT_2") in new stack
pbx.c: Executing [s@macro-dialout-trunk:9] Set("SIP/101-00000006", "DIAL_TRUNK_OPTIONS=T") in new stack
pbx.c: Executing [s@macro-dialout-trunk:10] GotoIf("SIP/101-00000006", "0?nomax") in new stack
pbx.c: Executing [s@macro-dialout-trunk:11] GotoIf("SIP/101-00000006", "0?chanfull") in new stack
pbx.c: Executing [s@macro-dialout-trunk:12] GotoIf("SIP/101-00000006", "0?skipoutcid") in new stack
pbx.c: Executing [s@macro-dialout-trunk:13] Macro("SIP/101-00000006", "outbound-callerid,2") in new stack
pbx.c: Executing [s@macro-outbound-callerid:1] NoOp("SIP/101-00000006", "101") in new stack
pbx.c: Executing [s@macro-outbound-callerid:2] NoOp("SIP/101-00000006", "") in new stack
pbx.c: Executing [s@macro-outbound-callerid:3] NoOp("SIP/101-00000006", "off") in new stack
pbx.c: Executing [s@macro-outbound-callerid:4] ExecIf("SIP/101-00000006", "0?Set(CALLERPRES(name-pres)=)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:5] ExecIf("SIP/101-00000006", "0?Set(CALLERPRES(num-pres)=)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:6] ExecIf("SIP/101-00000006", "0?Set(REALCALLERIDNUM=101)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:7] ExecIf("SIP/101-00000006", "0?Set(AMPUSER=101)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:8] GotoIf("SIP/101-00000006", "1?normcid") in new stack
pbx_builtins.c: Goto (macro-outbound-callerid,s,12)
pbx.c: Executing [s@macro-outbound-callerid:12] Set("SIP/101-00000006", "USEROUTCID=") in new stack
pbx.c: Executing [s@macro-outbound-callerid:13] Set("SIP/101-00000006", "EMERGENCYCID=") in new stack
pbx.c: Executing [s@macro-outbound-callerid:14] Set("SIP/101-00000006", "TRUNKOUTCID=0862431616") in new stack
pbx.c: Executing [s@macro-outbound-callerid:15] GotoIf("SIP/101-00000006", "1?trunkcid") in new stack
pbx_builtins.c: Goto (macro-outbound-callerid,s,21)
pbx.c: Executing [s@macro-outbound-callerid:21] ExecIf("SIP/101-00000006", "1?Set(CALLERID(all)=**DID**)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:22] ExecIf("SIP/101-00000006", "0?Set(CALLERID(all)=)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:23] ExecIf("SIP/101-00000006", "0?Set(CALLERID(all)=)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:24] ExecIf("SIP/101-00000006", "0?Set(CALLERID(all)=101)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:25] ExecIf("SIP/101-00000006", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:26] ExecIf("SIP/101-00000006", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
pbx.c: Executing [s@macro-outbound-callerid:27] Set("SIP/101-00000006", "CDR(outbound_cnum)=**DID**") in new stack
pbx.c: Executing [s@macro-outbound-callerid:28] Set("SIP/101-00000006", "CDR(outbound_cnam)=") in new stack
pbx.c: Executing [s@macro-dialout-trunk:14] GosubIf("SIP/101-00000006", "1?sub-flp-2,s,1()") in new stack
pbx.c: Executing [s@sub-flp-2:1] ExecIf("SIP/101-00000006", "0?Return()") in new stack
pbx.c: Executing [s@sub-flp-2:2] ExecIf("SIP/101-00000006", "1?Return()") in new stack
pbx.c: Executing [s@macro-dialout-trunk:15] Set("SIP/101-00000006", "OUTNUM=**OUTBOUND PHONE NUMBER**") in new stack
pbx.c: Executing [s@macro-dialout-trunk:16] Set("SIP/101-00000006", "custom=SIP/Exetel") in new stack
pbx.c: Executing [s@macro-dialout-trunk:17] ExecIf("SIP/101-00000006", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)") in new stack
pbx.c: Executing [s@macro-dialout-trunk:18] ExecIf("SIP/101-00000006", "0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))") in new stack
pbx.c: Executing [s@macro-dialout-trunk:19] Macro("SIP/101-00000006", "dialout-trunk-predial-hook,") in new stack
pbx.c: Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/101-00000006", "") in new stack
pbx.c: Executing [s@macro-dialout-trunk:20] GotoIf("SIP/101-00000006", "0?bypass,1") in new stack
pbx.c: Executing [s@macro-dialout-trunk:21] ExecIf("SIP/101-00000006", "1?Set(CONNECTEDLINE(num,i)=**OUTBOUND PHONE NUMBER**)") in new stack
pbx.c: Executing [s@macro-dialout-trunk:22] ExecIf("SIP/101-00000006", "1?Set(CONNECTEDLINE(name,i)=CID:**DID**)") in new stack
pbx.c: Executing [s@macro-dialout-trunk:23] ExecIf("SIP/101-00000006", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)**DID**)") in new stack
pbx.c: Executing [s@macro-dialout-trunk:24] GotoIf("SIP/101-00000006", "0?customtrunk") in new stack
pbx.c: Executing [s@macro-dialout-trunk:25] ExecIf("SIP/101-00000006", "0?Set(DIAL_TRUNK_OPTIONS=)") in new stack
pbx.c: Executing [s@macro-dialout-trunk:26] Dial("SIP/101-00000006", "SIP/Exetel/**OUTBOUND PHONE NUMBER**,300,Tb(func-apply-sipheaders^s^1,(2))") in new stack
netsock2.c: Using SIP RTP TOS bits 184
netsock2.c: Using SIP RTP CoS mark 5
app_stack.c: SIP/Exetel-00000007 Internal Gosub(func-apply-sipheaders,s,1(2)) start
pbx.c: Executing [s@func-apply-sipheaders:1] NoOp("SIP/Exetel-00000007", "Applying SIP Headers to channel SIP/Exetel-00000007") in new stack
pbx.c: Executing [s@func-apply-sipheaders:2] Set("SIP/Exetel-00000007", "TECH=SIP") in new stack
pbx.c: Executing [s@func-apply-sipheaders:3] Set("SIP/Exetel-00000007", "SIPHEADERKEYS=") in new stack
pbx.c: Executing [s@func-apply-sipheaders:4] While("SIP/Exetel-00000007", "0") in new stack
app_while.c: Jumping to priority 10
pbx.c: Executing [s@func-apply-sipheaders:11] Return("SIP/Exetel-00000007", "") in new stack
app_stack.c: Spawn extension (from-trunk, **OUTBOUND PHONE NUMBER**, 1) exited non-zero on 'SIP/Exetel-00000007'
app_stack.c: SIP/Exetel-00000007 Internal Gosub(func-apply-sipheaders,s,1(2)) complete GOSUB_RETVAL=
app_dial.c: Called SIP/Exetel/**OUTBOUND PHONE NUMBER**
chan_sip.c: Received response: "Forbidden" from '<sip:**DID**@**SERVER IP**>;tag=as5b56e5d8'
app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
pbx.c: Executing [s@macro-dialout-trunk:27] NoOp("SIP/101-00000006", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new stack
pbx.c: Executing [s@macro-dialout-trunk:28] GotoIf("SIP/101-00000006", "1?continue,1:s-CHANUNAVAIL,1") in new stack
pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
pbx.c: Executing [continue@macro-dialout-trunk:1] NoOp("SIP/101-00000006", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks") in new stack
pbx.c: Executing [continue@macro-dialout-trunk:2] ExecIf("SIP/101-00000006", "1?Set(CALLERID(number)=101)") in new stack
pbx.c: Executing [**OUTBOUND PHONE NUMBER**@from-internal:6] Macro("SIP/101-00000006", "outisbusy,") in new stack
pbx.c: Executing [s@macro-outisbusy:1] Progress("SIP/101-00000006", "") in new stack
pbx.c: Executing [s@macro-outisbusy:2] GotoIf("SIP/101-00000006", "0?emergency,1") in new stack
pbx.c: Executing [s@macro-outisbusy:3] GotoIf("SIP/101-00000006", "0?intracompany,1") in new stack
pbx.c: Executing [s@macro-outisbusy:4] Playback("SIP/101-00000006", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack
file.c: <SIP/101-00000006> Playing 'all-circuits-busy-now.ulaw' (language 'en')
file.c: <SIP/101-00000006> Playing 'please-try-call-later.ulaw' (language 'en')
Насколько я понимаю, проблема начинается с
Received response: "Forbidden" from '<sip:**DID**@**SERVER IP**>;tag=as5b56e5d8'