outbound trunk doesn't work - all circuits busy
Hi,
I have installed TrixBox CE in our private network and we have VoIP trunks coming in to the Session Border Controller (SBC). We don't need to register with our provider (thus no need of the register string) as these are dedicated circuits (IPVPN).
I just created a SIP trunk on TrixBox and pointed it to the IP to send outbound calls to, so in the "Outgoing Settings":
allow=alaw&ulaw&gsm
disallow=all
host=10.5.10.7
#username=***userid***
#secret=***password***
type=peer
The "Register String" I kept blank and since I just want to test outbound call for now, all settings in "Incoming Settings" are blank as well.
Then from a SIP phone rgistered to the TrixBox, I tried the outbound call but in vein - says "all circuits are busy......". Did a capture on the interface and didn't seen any outgoing INVITE to 10.5.10.7
Following is the dump from asterisk:
atlcgitrix01*CLI>
atlcgitrix01*CLI>
-- Executing [4036906974@from-internal:1] Macro("SIP/5719-b7805640", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/5719-b7805640", "user-callerid: device 5719") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/5719-b7805640", "AMPUSER=5719") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/5719-b7805640", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/5719-b7805640", "1|Set|REALCALLERIDNUM=5719") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/5719-b7805640", "REALCALLERIDNUM is 5719") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/5719-b7805640", "AMPUSER=5719") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/5719-b7805640", "AMPUSERCIDNAME=Umer WaQar") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/5719-b7805640", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/5719-b7805640", "AMPUSERCID=5719") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/5719-b7805640", "CALLERID(all)="Umer WaQar" <5719>") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/5719-b7805640", "REALCALLERIDNUM=5719") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/5719-b7805640", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/5719-b7805640", "TTL: ARG1: SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/5719-b7805640", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/5719-b7805640", "Using CallerID "Umer WaQar" <5719>") in new stack
-- Executing [4036906974@from-internal:2] Set("SIP/5719-b7805640", "_NODEST=") in new stack
-- Executing [4036906974@from-internal:3] Macro("SIP/5719-b7805640", "record-enable|5719|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/5719-b7805640", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/5719-b7805640", "recordingcheck|20080926-103744|1222447064.30") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080926-103744|1222447064.30: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("SIP/5719-b7805640", "No recording needed") in new stack
-- Executing [4036906974@from-internal:4] Macro("SIP/5719-b7805640", "dialout-trunk|2|4036906974||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/5719-b7805640", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/5719-b7805640", "0|Authenticate|") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/5719-b7805640", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/5719-b7805640", "DIAL_NUMBER=4036906974") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/5719-b7805640", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/5719-b7805640", "GROUP()=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/5719-b7805640", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/5719-b7805640", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/5719-b7805640", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/5719-b7805640", "outbound-callerid|2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/5719-b7805640", "0|SetCallerPres|") in new stack
-- Executing [s@macro-outbound-callerid:2] GotoIf("SIP/5719-b7805640", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,4)
-- Executing [s@macro-outbound-callerid:4] NoOp("SIP/5719-b7805640", "REALCALLERIDNUM is 5719") in new stack
-- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/5719-b7805640", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,10)
-- Executing [s@macro-outbound-callerid:10] Set("SIP/5719-b7805640", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("SIP/5719-b7805640", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:12] Set("SIP/5719-b7805640", "TRUNKOUTCID="ATLDC"
-- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/5719-b7805640", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,17)
-- Executing [s@macro-outbound-callerid:17] GotoIf("SIP/5719-b7805640", "0?usercid") in new stack
-- Executing [s@macro-outbound-callerid:18] Set("SIP/5719-b7805640", "CALLERID(all)=ATLDC
-- Executing [s@macro-outbound-callerid:19] GotoIf("SIP/5719-b7805640", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,23)
-- Executing [s@macro-outbound-callerid:23] NoOp("SIP/5719-b7805640", "CallerID set to "ATLDC"
-- Executing [s@macro-dialout-trunk:12] AGI("SIP/5719-b7805640", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 9003+NXXXXXXXXX
== fixlocalprefix: Dialpattern 9003+NXXXXXXXXX matched. 4036906974 -> 90034036906974
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/5719-b7805640", "OUTNUM=90034036906974") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/5719-b7805640", "custom=SIP/GX-SIP") in new stack
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/5719-b7805640", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,17)
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/5719-b7805640", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/5719-b7805640", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/5719-b7805640", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:20] Dial("SIP/5719-b7805640", "SIP/GX-SIP/90034036906974|300|") in new stack
-- Couldn't call GX-SIP/90034036906974
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/5719-b7805640", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/5719-b7805640", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/5719-b7805640", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing [4036906974@from-internal:5] Macro("SIP/5719-b7805640", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/5719-b7805640", "all-circuits-busy-now|noanswer") in new stack
--
-- Executing [s@macro-outisbusy:2] Playback("SIP/5719-b7805640", "pls-try-call-later|noanswer") in new stack
--
-- Executing [s@macro-outisbusy:3] Macro("SIP/5719-b7805640", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/5719-b7805640", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/5719-b7805640", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/5719-b7805640", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/5719-b7805640", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/5719-b7805640", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/5719-b7805640", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/5719-b7805640' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/5719-b7805640' in macro 'outisbusy'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/5719-b7805640'
-- Unregistered SIP '5719'



Member Since:
2008-09-25