Trunk between 2.6 and 2.8 gives "All circuits are busy"

uncanny
Posts: 34
Member Since:
2009-09-30

Hello all,

I have a remote site that I'm trying to connect the two trixbox servers for internal extension calls(and eventually, hopefully external call routing too). Both are connected over a standard VPN site-to-site tunnel across the internet; and both servers can ping each other just fine. I can also hook up to the remote trixbox server using a software voip phone with no problems (going from both ends, eg using site1 details on a site2 softphone and vice versa).

Here's the process I used (Server 1 is the local server). Note: I'm currently not using passwords as I want to get the thing running first before trying to lock down.
Server 1:
New Trunk name Server2
Dial Rules
16|XXX
PEER Details:
context=from-internal
host=192.168.1.5[server2-ip-address]
qualify=yes
type=friend
disallow=all
allow=g729
New Outbound Route
Dial Patterns
16XXX
Trunk Sequence: IAX2/Server2

Server 2:
New Trunk name Server1
Dial Rules
144|XXX
PEER Details:
context=from-internal
host=192.168.2.5[server1-ip-address]
qualify=yes
type=friend
disallow=all
allow=g729
New Outbound Route
Dial Patterns
144XXX
Trunk Sequence: IAX2/Server1

Both servers claim the IAX2 trunk and connection is up, latency is reasonable (50-80ms)



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Do you have g729 licenses on

Do you have g729 licenses on both boxes?

You need to look at the call logs, do you see the call going out the IAX trunk?

Then turn off the logs (core set verbose 0) and turn on IAX debug and see why the call is failing.

You can post the logs, however please use the code tags so we can read the text when posting logs. This step is detailed in the thread 'how to ask for help'

--

Scott

aka "Skyking"



uncanny
Posts: 34
Member Since:
2009-09-30
Hi Scott; Sorry, just

Hi Scott;

Sorry, just realized the other server doesn't. However, trying with GSM returns the same result.
Noticed "Everyone is busy/congested at this time " in the log - this doesn't make sense? I'm able to call out fine from a softphone through this server
Here's the log (hope I got the code tags right):

    -- Executing [00857400353@from-internal:1] Set("SIP/368-b61e3f10", "MOHCLASS=none") in new stack
    -- Executing [00857400353@from-internal:2] Macro("SIP/368-b61e3f10", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/368-b61e3f10", "AMPUSER=368") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/368-b61e3f10", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/368-b61e3f10", "1|Set|REALCALLERIDNUM=368") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/368-b61e3f10", "AMPUSER=368") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/368-b61e3f10", "AMPUSERCIDNAME=Teresa Creevy") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/368-b61e3f10", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/368-b61e3f10", "AMPUSERCID=368") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/368-b61e3f10", "CALLERID(all)="Teresa Creevy" <368>") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/368-b61e3f10", "REALCALLERIDNUM=368") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("SIP/368-b61e3f10", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:11] GotoIf("SIP/368-b61e3f10", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,20)
    -- Executing [s@macro-user-callerid:20] NoOp("SIP/368-b61e3f10", "Using CallerID "Teresa Creevy" <368>") in new stack
    -- Executing [00857400353@from-internal:3] Set("SIP/368-b61e3f10", "_NODEST=") in new stack
    -- Executing [00857400353@from-internal:4] Macro("SIP/368-b61e3f10", "record-enable|368|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/368-b61e3f10", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/368-b61e3f10", "recordingcheck|20100826-155015|1282834215.42089") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20100826-155015|1282834215.42089: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("SIP/368-b61e3f10", "") in new stack
    -- Executing [00857400353@from-internal:5] Macro("SIP/368-b61e3f10", "dialout-trunk|2|0857400353||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/368-b61e3f10", "DIAL_TRUNK=2") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/368-b61e3f10", "0?sub-pincheck|s|1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/368-b61e3f10", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/368-b61e3f10", "DIAL_NUMBER=0857400353") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/368-b61e3f10", "DIAL_TRUNK_OPTIONS=rtTwW") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/368-b61e3f10", "OUTBOUND_GROUP=OUT_2") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/368-b61e3f10", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/368-b61e3f10", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/368-b61e3f10", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/368-b61e3f10", "outbound-callerid|2") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/368-b61e3f10", "0|SetCallerPres|") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/368-b61e3f10", "0|Set|REALCALLERIDNUM=368") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/368-b61e3f10", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/368-b61e3f10", "USEROUTCID=6368") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/368-b61e3f10", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/368-b61e3f10", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/368-b61e3f10", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/368-b61e3f10", "0|Set|CALLERID(all)=") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/368-b61e3f10", "1|Set|CALLERID(all)=6368") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/368-b61e3f10", "0|SetCallerPres|prohib_passed_screen") in new stack
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/368-b61e3f10", "0|AGI|fixlocalprefix") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/368-b61e3f10", "OUTNUM=0857400353") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/368-b61e3f10", "custom=SIP/cg08p") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/368-b61e3f10", "1|Set|DIAL_TRUNK_OPTIONS=M(setmusic^none)") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/368-b61e3f10", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/368-b61e3f10", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/368-b61e3f10", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/368-b61e3f10", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/368-b61e3f10", "SIP/cg08p/0857400353|300|M(setmusic^none)") in new stack
    -- Called cg08p/0857400353
    -- Executing [144240@from-internal:1] Set("SIP/305-b6e30020", "INTRACOMPANYROUTE=YES") in new stack
    -- Executing [144240@from-internal:2] Macro("SIP/305-b6e30020", "user-callerid|SKIPTTL|") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/305-b6e30020", "AMPUSER=305") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/305-b6e30020", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/305-b6e30020", "1|Set|REALCALLERIDNUM=305") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/305-b6e30020", "AMPUSER=305") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/305-b6e30020", "AMPUSERCIDNAME=Brandon Esbach") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/305-b6e30020", "0?report") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/305-b6e30020", "AMPUSERCID=305") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/305-b6e30020", "CALLERID(all)="Brandon Esbach" <305>") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/305-b6e30020", "REALCALLERIDNUM=305") in new stack
    -- Executing [s@macro-user-callerid:10] ExecIf("SIP/305-b6e30020", "0|Set|CHANNEL(language)=") in new stack
    -- Executing [s@macro-user-callerid:11] GotoIf("SIP/305-b6e30020", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,20)
    -- Executing [s@macro-user-callerid:20] NoOp("SIP/305-b6e30020", "Using CallerID "Brandon Esbach" <305>") in new stack
    -- Executing [144240@from-internal:3] Set("SIP/305-b6e30020", "_NODEST=") in new stack
    -- Executing [144240@from-internal:4] Macro("SIP/305-b6e30020", "record-enable|305|OUT|") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/305-b6e30020", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("SIP/305-b6e30020", "recordingcheck|20100826-155018|1282834218.42091") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20100826-155018|1282834218.42091: Outbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] MacroExit("SIP/305-b6e30020", "") in new stack
    -- Executing [144240@from-internal:5] Macro("SIP/305-b6e30020", "dialout-trunk|3|144240||") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/305-b6e30020", "DIAL_TRUNK=3") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/305-b6e30020", "0?sub-pincheck|s|1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/305-b6e30020", "0?disabletrunk|1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/305-b6e30020", "DIAL_NUMBER=144240") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/305-b6e30020", "DIAL_TRUNK_OPTIONS=rtTwW") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/305-b6e30020", "OUTBOUND_GROUP=OUT_3") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/305-b6e30020", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/305-b6e30020", "1?skipoutcid") in new stack
    -- Goto (macro-dialout-trunk,s,12)
    -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/305-b6e30020", "1|AGI|fixlocalprefix") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
       >  fixlocalprefix: Using pattern 144|XXX
  ==  fixlocalprefix: Dialpattern 144|XXX matched. 144240 -> 240
    -- AGI Script fixlocalprefix completed, returning 0
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/305-b6e30020", "OUTNUM=240") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/305-b6e30020", "custom=IAX2/Belfast") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/305-b6e30020", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)rtTwW") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("SIP/305-b6e30020", "dialout-trunk-predial-hook|") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/305-b6e30020", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/305-b6e30020", "0?bypass|1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/305-b6e30020", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:19] Dial("SIP/305-b6e30020", "IAX2/Belfast/240|300|rtTwW") in new stack
    -- Called Belfast/240
    -- Hungup 'IAX2/Belfast-16388'
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [s@macro-dialout-trunk:20] Goto("SIP/305-b6e30020", "s-CHANUNAVAIL|1") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/305-b6e30020", "1?noreport") in new stack
    -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
    -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/305-b6e30020", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
    -- Executing [144240@from-internal:6] Macro("SIP/305-b6e30020", "outisbusy|") in new stack
    -- Executing [s@macro-outisbusy:1] Playback("SIP/305-b6e30020", "all-circuits-busy-now|noanswer") in new stack
    -- <SIP/305-b6e30020> Playing 'all-circuits-busy-now' (language 'en')
    -- SIP/cg08p-099206d8 is making progress passing it to SIP/368-b61e3f10
    -- Executing [s@macro-outisbusy:2] Playback("SIP/305-b6e30020", "pls-try-call-later|noanswer") in new stack
    -- <SIP/305-b6e30020> Playing 'pls-try-call-later' (language 'en')
    -- Executing [s@macro-outisbusy:3] Macro("SIP/305-b6e30020", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] ResetCDR("SIP/305-b6e30020", "vw") in new stack
    -- Executing [s@macro-hangupcall:2] NoCDR("SIP/305-b6e30020", "") in new stack
    -- Executing [s@macro-hangupcall:3] GotoIf("SIP/305-b6e30020", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,6)
    -- Executing [s@macro-hangupcall:6] GotoIf("SIP/305-b6e30020", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] GotoIf("SIP/305-b6e30020", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,11)
    -- Executing [s@macro-hangupcall:11] Hangup("SIP/305-b6e30020", "") in new stack
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/305-b6e30020' in macro 'hangupcall'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/305-b6e30020' in macro 'outisbusy'
  == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/305-b6e30020'
    -- SIP/cg08p-099206d8 answered SIP/368-b61e3f10
    -- Executing [s@macro-setmusic:1] NoOp("SIP/cg08p-099206d8", "Setting Outbound Route MoH To: none") in new stack
    -- Executing [s@macro-setmusic:2] SetMusicOnHold("SIP/cg08p-099206d8", "none") in new stack
    -- Native bridging SIP/368-b61e3f10 and SIP/cg08p-099206d8


SkykingOH
Posts: 9541
Member Since:
2007-12-17
Well, I don't know what to

Well, I don't know what to say. You did not follow my directions and post the IAX debug. You did however use the code tags I appreciate that.

You do you your calltokenoptional setup correctly on the 2.8 box?

--

Scott

aka "Skyking"



uncanny
Posts: 34
Member Since:
2009-09-30
Scott, My apologies -

Scott,

My apologies - working with servers I haven't touched for love or money in about a year and fumbling my way through doesn't make it any easier for the community to help - I understand that and apologize.

Current have I have the following setup on both servers:
iax_custom.conf:
calltokenoptional = 0.0.0.0/0.0.0.0
maxcallnumbers = 16382

iax_general_custom.conf:
requirecalltoken=no

Have I missed one out?

Edit: restarting both servers it is now working one-way (site1 to server2); however not the other way.



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Please post the IAX debug as

Please post the IAX debug as I instructed. Turn off verbose so it does not clutter the display. If you can't find a command just type the ? IE: "iax ?"

--

Scott

aka "Skyking"



A.Salah
Posts: 99
Member Since:
2011-02-16
if u r still interested i

if u r still interested
i think that this might help

On the trixbox 2.8 box you need to add the following lines to iax_custom_general.conf
calltokenoptional = 0.0.0.0/0.0.0.0
maxcallnumbers = 16382
Then issue an amportal restart



A.Salah
Posts: 99
Member Since:
2011-02-16
if u r still interested i

if u r still interested
i think that this might help

On the trixbox 2.8 box you need to add the following lines to iax_custom_general.conf
calltokenoptional = 0.0.0.0/0.0.0.0
maxcallnumbers = 16382
Then issue an amportal restart



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.