Unable to make outgoing SIP calls. Inbound works

Hello.

Thanks in advance. I just rolled out a PBX setup in my office. This is my first venture in this space (PBX), so I’m a newb. My problem is that I am able to receive inbound calls, but when making outbound calls, I get the “all circuits busy” message.

Background: I set up two Cisco SPA 525 phones in my office and have created extensions for maybe 6 users. I’m on VoicePulse and that as working for I/B and O/B calls. The problem here was that Verizon would change my IP every 24 hours and I’d lose registration until I performed a manual reset. Easiest thing was to get a static IP w/ Verizon, which I did.

Adjusting the settings after that change is where the outbound calls broke, but I can’t figure out why. I get that there’s a “congestion” error, but none of the phones are being used at the time. We’re not making 5 outgoing calls at once. Of note I also added a third phone to the system, same type as the others.

I’ll paste an outgoing call. Phone numbers/ IP’s removed.

PBX Firmware: 12.7.6-1904-1.sng7

freepbxCLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [[email protected]:1] Macro(“SIP/103-0000006a”, “user-callerid,LIMIT”) in new stack
– Executing [[email protected]:1] Set(“SIP/103-0000006a”, “TOUCH_MONITOR=1561752560.109”) in new stack
– Executing [[email protected]:2] Set(“SIP/103-0000006a”, “AMPUSER=103”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/103-0000006a”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/103-0000006a”, “1?Set(REALCALLERIDNUM=103)”) in new stack
– Executing [[email protected]:5] Set(“SIP/103-0000006a”, “AMPUSER=103”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/103-0000006a”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“SIP/103-0000006a”, “AMPUSERCIDNAME=FD3”) in new stack
– Executing [[email protected]:8] ExecIf(“SIP/103-0000006a”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/103-0000006a”, “0?report”) in new stack
– Executing [[email protected]:10] Set(“SIP/103-0000006a”, “AMPUSERCID=103”) in new stack
– Executing [[email protected]:11] Set(“SIP/103-0000006a”, “__DIAL_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:12] Set(“SIP/103-0000006a”, “CALLERID(all)=“FD3” <103>”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/103-0000006a”, “0?limit”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/103-0000006a”, “1?Set(GROUP(concurrency_limit)=103)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/103-0000006a”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:16] NoOp(“SIP/103-0000006a”, “Macro Depth is 1”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/103-0000006a”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [[email protected]:18] GotoIf(“SIP/103-0000006a”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,37)
– Executing [[email protected]:37] Set(“SIP/103-0000006a”, “CALLERID(number)=103”) in new stack
– Executing [[email protected]:38] Set(“SIP/103-0000006a”, “CALLERID(name)=FD3”) in new stack
– Executing [[email protected]:39] GotoIf(“SIP/103-0000006a”, “0?cnum”) in new stack
– Executing [[email protected]:40] Set(“SIP/103-0000006a”, “CDR(cnam)=FD3”) in new stack
– Executing [[email protected]:41] Set(“SIP/103-0000006a”, “CDR(cnum)=103”) in new stack
– Executing [[email protected]:42] Set(“SIP/103-0000006a”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/103-0000006a”, “ROUTEUSER=103”) in new stack
– Executing [[email protected]:3] Set(“SIP/103-0000006a”, “ROUTEUSER=103”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/103-0000006a”, “1?notblind”) in new stack
– Goto (from-internal,TestCallOut,7)
– Executing [[email protected]:7] GotoIf(“SIP/103-0000006a”, “1?restrictedroute-c4ca4238a0b923820dcc509a6f75849b,TestCallOut,2:outbound-allroutes,TestCallOut,2”) in new stack
– Goto (restrictedroute-c4ca4238a0b923820dcc509a6f75849b,TestCallOut,2)
– Executing [[email protected]:2] Gosub(“SIP/103-0000006a”, “sub-record-check,s,1(out,TestCallOut,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/103-0000006a”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“SIP/103-0000006a”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“SIP/103-0000006a”, “NOW=1561752560”) in new stack
– Executing [[email protected]:4] Set(“SIP/103-0000006a”, “__DAY=28”) in new stack
– Executing [[email protected]:5] Set(“SIP/103-0000006a”, “__MONTH=06”) in new stack
– Executing [[email protected]:6] Set(“SIP/103-0000006a”, “__YEAR=2019”) in new stack
– Executing [[email protected]:7] Set(“SIP/103-0000006a”, “__TIMESTR=20190628-160920”) in new stack
– Executing [[email protected]:8] Set(“SIP/103-0000006a”, “__FROMEXTEN=103”) in new stack
– Executing [[email protected]:9] Set(“SIP/103-0000006a”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“SIP/103-0000006a”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/103-0000006a”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“SIP/103-0000006a”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/103-0000006a”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“SIP/103-0000006a”, “3?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“SIP/103-0000006a”, “1?sub-record-check,out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] NoOp(“SIP/103-0000006a”, “Outbound Recording Check from 103 to TestCallOut”) in new stack
– Executing [[email protected]:2] Set(“SIP/103-0000006a”, “RECMODE=dontcare”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/103-0000006a”, “1?Goto(routewins)”) in new stack
– Goto (sub-record-check,out,7)
– Executing [[email protected]:7] Gosub(“SIP/103-0000006a”, “recordcheck,1(dontcare,out,TestCallOut)”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/103-0000006a”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“SIP/103-0000006a”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“SIP/103-0000006a”, “”) in new stack
– Executing [[email protected]:8] Return(“SIP/103-0000006a”, “”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/103-0000006a”, “0 ?Set(CDR(accountcode)=)”) in new stack
– Executing [[email protected]:4] Set(“SIP/103-0000006a”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/103-0000006a”, “1?Set(TRUNKCIDOVERRIDE=VoicePulseNumber)”) in new stack
– Executing [[email protected]:6] Set(“SIP/103-0000006a”, “_NODEST=”) in new stack
– Executing [[email protected]:7] Macro(“SIP/103-0000006a”, “dialout-trunk,1,1TestCallOut,off”) in new stack
– Executing [[email protected]:1] Set(“SIP/103-0000006a”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/103-0000006a”, “0?Set(DIAL_OPTIONS=Hhtr)”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/103-0000006a”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/103-0000006a”, “0?Set(CALLERID(num)=103)”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/103-0000006a”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:6] Set(“SIP/103-0000006a”, “DIAL_NUMBER=1TestCallOut”) in new stack
– Executing [[email protected]:7] Set(“SIP/103-0000006a”, “DIAL_TRUNK_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:8] Set(“SIP/103-0000006a”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:9] Set(“SIP/103-0000006a”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/103-0000006a”, “0?nomax”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/103-0000006a”, “0?chanfull”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/103-0000006a”, “0?skipoutcid”) in new stack
– Executing [[email protected]:13] Macro(“SIP/103-0000006a”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] NoOp(“SIP/103-0000006a”, “103”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/103-0000006a”, “”) in new stack
– Executing [[email protected]:3] NoOp(“SIP/103-0000006a”, “off”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/103-0000006a”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [[email protected]:5] ExecIf(“SIP/103-0000006a”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [[email protected]:6] ExecIf(“SIP/103-0000006a”, “0?Set(REALCALLERIDNUM=103)”) in new stack
– Executing [[email protected]:7] ExecIf(“SIP/103-0000006a”, “0?Set(AMPUSER=103)”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/103-0000006a”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] Set(“SIP/103-0000006a”, “USEROUTCID=”) in new stack
– Executing [[email protected]:13] Set(“SIP/103-0000006a”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:14] Set(“SIP/103-0000006a”, “TRUNKOUTCID=VoicePulseNumber”) in new stack
– Executing [[email protected]:15] GotoIf(“SIP/103-0000006a”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,21)
– Executing [[email protected]:21] ExecIf(“SIP/103-0000006a”, “1?Set(CALLERID(all)=VoicePulseNumber)”) in new stack
– Executing [[email protected]:22] ExecIf(“SIP/103-0000006a”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:23] ExecIf(“SIP/103-0000006a”, “1?Set(CALLERID(all)=VoicePulseNumber)”) in new stack
– Executing [[email protected]:24] ExecIf(“SIP/103-0000006a”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:25] ExecIf(“SIP/103-0000006a”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:26] Set(“SIP/103-0000006a”, “CDR(outbound_cnum)=VoicePulseNumber”) in new stack
– Executing [[email protected]:27] Set(“SIP/103-0000006a”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:14] GosubIf(“SIP/103-0000006a”, “1?sub-flp-1,s,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/103-0000006a”, “1?Return()”) in new stack
– Executing [[email protected]:15] Set(“SIP/103-0000006a”, “OUTNUM=1TestCallOut”) in new stack
– Executing [[email protected]:16] Set(“SIP/103-0000006a”, “custom=SIP/norman”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/103-0000006a”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [[email protected]:18] ExecIf(“SIP/103-0000006a”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [[email protected]:19] Macro(“SIP/103-0000006a”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/103-0000006a”, “”) in new stack
– Executing [[email protected]:20] GotoIf(“SIP/103-0000006a”, “0?skipcrm”) in new stack
– Executing [[email protected]:21] Set(“SIP/103-0000006a”, “__CRM_DIRECTION=OUTBOUND”) in new stack
– Executing [[email protected]:22] Set(“SIP/103-0000006a”, “__CRM_DESTINATION=1TestCallOut”) in new stack
– Executing [[email protected]:23] Set(“SIP/103-0000006a”, “__CRM_SOURCE=103”) in new stack
– Executing [[email protected]:24] AGI(“SIP/103-0000006a”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/103-0000006a>AGI Script sangomacrm.agi completed, returning 0
– Executing [[email protected]:25] Set(“SIP/103-0000006a”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
– Executing [[email protected]:26] NoOp(“SIP/103-0000006a”, “CRM Finished”) in new stack
– Executing [[email protected]:27] GotoIf(“SIP/103-0000006a”, “0?bypass,1”) in new stack
– Executing [[email protected]:28] ExecIf(“SIP/103-0000006a”, “1?Set(CONNECTEDLINE(num,i)=1TestCallOut)”) in new stack
– Executing [[email protected]:29] ExecIf(“SIP/103-0000006a”, “1?Set(CONNECTEDLINE(name,i)=CID:VoicePulseNumber)”) in new stack
– Executing [[email protected]:30] ExecIf(“SIP/103-0000006a”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)VoicePulseNumber)”) in new stack
– Executing [[email protected]:31] GotoIf(“SIP/103-0000006a”, “0?customtrunk”) in new stack
– Executing [[email protected]:32] Dial(“SIP/103-0000006a”, “SIP/norman/1TestCallOut,300,Tb(func-apply-sipheaders^s^1,(1))”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– SIP/norman-0000006b Internal Gosub(func-apply-sipheaders,s,1(1)) start
– Executing [[email protected]:1] ExecIf(“SIP/norman-0000006b”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/norman-0000006b”, “Applying SIP Headers to channel SIP/norman-0000006b”) in new stack
– Executing [[email protected]:3] Set(“SIP/norman-0000006b”, “TECH=SIP”) in new stack
– Executing [[email protected]:4] Set(“SIP/norman-0000006b”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:5] While(“SIP/norman-0000006b”, “0”) in new stack
– Jumping to priority 12
– Executing [[email protected]:13] Return(“SIP/norman-0000006b”, “”) in new stack
== Spawn extension (from-pstn, TestCallOut, 1) exited non-zero on ‘SIP/norman-0000006b’
– SIP/norman-0000006b Internal Gosub(func-apply-sipheaders,s,1(1)) complete GOSUB_RETVAL=
– Called SIP/norman/1TestCallOut
[2019-06-28 16:09:20] NOTICE[14438][C-0000003f]: chan_sip.c:24042 handle_response_invite: Failed to authenticate on INVITE to ‘sip:[email protected]:5062;tag=as06dddc8f’
– SIP/norman-0000006b is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [[email protected]:33] NoOp(“SIP/103-0000006a”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21”) in new stack
– Executing [[email protected]:34] GotoIf(“SIP/103-0000006a”, “0?continue,1:s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [[email protected]:1] Set(“SIP/103-0000006a”, “RC=21”) in new stack
– Executing [[email protected]:2] Goto(“SIP/103-0000006a”, “21,1”) in new stack
– Goto (macro-dialout-trunk,21,1)
– Executing [[email protected]:1] Goto(“SIP/103-0000006a”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] NoOp(“SIP/103-0000006a”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/103-0000006a”, “1?Set(CALLERID(number)=103)”) in new stack
– Executing [[email protected]:8] Macro(“SIP/103-0000006a”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“SIP/103-0000006a”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/103-0000006a”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/103-0000006a”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“SIP/103-0000006a”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
– <SIP/103-0000006a> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
– <SIP/103-0000006a> Playing ‘please-try-call-later.ulaw’ (language ‘en’)
– Executing [[email protected]:5] Congestion(“SIP/103-0000006a”, “20”) in new stack
[2019-06-28 16:09:24] WARNING[8160][C-0000003f]: channel.c:5080 ast_prod: Prodding channel ‘SIP/103-0000006a’ failed
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/103-0000006a’ in macro ‘outisbusy’
== Spawn extension (restrictedroute-c4ca4238a0b923820dcc509a6f75849b, TestCallOut, 8) exited non-zero on ‘SIP/103-0000006a’
– Executing [[email protected]:1] Hangup(“SIP/103-0000006a”, “”) in new stack
== Spawn extension (restrictedroute-c4ca4238a0b923820dcc509a6f75849b, h, 1) exited non-zero on ‘SIP/103-0000006a’
– SIP/103-0000006a Internal Gosub(crm-hangup,s,1) start
– Executing [[email protected]:1] NoOp(“SIP/103-0000006a”, “Sending Hangup to CRM”) in new stack
– Executing [[email protected]:2] NoOp(“SIP/103-0000006a”, “HANGUP CAUSE: 34”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/103-0000006a”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
– Executing [[email protected]:4] NoOp(“SIP/103-0000006a”, “MASTER CHANNEL: 1561752560.109 = 1561752560.109”) in new stack
– Executing [[email protected]:5] GotoIf(“SIP/103-0000006a”, “0?return”) in new stack
– Executing [[email protected]:6] Set(“SIP/103-0000006a”, “__CRM_HANGUP=1”) in new stack
– Executing [[email protected]:7] AGI(“SIP/103-0000006a”, “sangomacrm.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
– <SIP/103-0000006a>AGI Script sangomacrm.agi completed, returning 0
– Executing [[email protected]:8] Return(“SIP/103-0000006a”, “”) in new stack
== Spawn extension (restrictedroute-c4ca4238a0b923820dcc509a6f75849b, h, 1) exited non-zero on ‘SIP/103-0000006a’
– SIP/103-0000006a Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
freepbx
CLI>

Self explanatory in

[2019-06-28 16:09:20] NOTICE[14438][C-0000003f]: chan_sip.c:24042 handle_response_invite: Failed to authenticate on INVITE to ‘sip:[email protected]:5062;tag=as06dddc8f’
– SIP/norman-0000006b is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [[email protected]:33] NoOp(“SIP/103-0000006a”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 21”) in new stack

Yes, I can see that’s where the error is, but I don’t know what this syntax means. We don’t have five calls going at once. Can I only have a specific number of extensions *assigned to a trunk (as opposed to actively *using it)?

https://networking.ringofsaturn.com/Routers/isdncausecodes.php

Cause No. 21 - call rejected.
This cause indicates that the equipment sending this cause does not wish to accept this call. although it could have accepted the call because the equipment sending this cause is neither busy nor incompatible. This cause may also be generated by the network, indicating that the call was cleared due to a supplementary service constraint. The diagnostic field may contain additional information about the supplementary service and reason for rejection.

Call the carrier

Ooh, I see. Thank you for the help and the link.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.