2 Trunks, Calls Congested

Hi,

Im having a situation that is driving me crazy:

I have 2 trunks:

1 IAX to connect to PBXs
2 SIP trunk named Voxbeam used for outbound and inbound calls

my CID is 0540543700. I call PBX1, Use a call route to direct international calls to CloudPBX. CloudPBX should use Voxbeam SIP trunk for the outgoing call.

I have configured outbound routes on CloudPBX.

I have both IAX and SIP trunks on CloudPBX with correct dial manipulation rules.

However, the calls get congested. I think CloudPBX is not able to use Voxbeam trunk. It keeps trying to use the IAX trunk. Am I right?

Below are the logs:

[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:1] Set("IAX2/JEDPBX-11963", "TOUCH_MONITOR=1497789963.172") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:2] Set("IAX2/JEDPBX-11963", "AMPUSER=0540543700") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:3] GotoIf("IAX2/JEDPBX-11963", "0?report") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:4] ExecIf("IAX2/JEDPBX-11963", "1?Set(REALCALLERIDNUM=0540543700)") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:5] Set("IAX2/JEDPBX-11963", "AMPUSER=") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:6] GotoIf("IAX2/JEDPBX-11963", "0?limit") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:7] Set("IAX2/JEDPBX-11963", "AMPUSERCIDNAME=") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:8] GotoIf("IAX2/JEDPBX-11963", "1?report") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx_builtins.c: Goto (macro-user-callerid,s,15)
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:15] GotoIf("IAX2/JEDPBX-11963", "1?continue") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx_builtins.c: Goto (macro-user-callerid,s,29)
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:29] Set("IAX2/JEDPBX-11963", "CALLERID(number)=0540543700") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:30] Set("IAX2/JEDPBX-11963", "CALLERID(name)=") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:31] GotoIf("IAX2/JEDPBX-11963", "1?cnum") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx_builtins.c: Goto (macro-user-callerid,s,33)
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:33] Set("IAX2/JEDPBX-11963", "CDR(cnum)=0540543700") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:34] Set("IAX2/JEDPBX-11963", "CHANNEL(language)=en") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:2] Set("IAX2/JEDPBX-11963", "ROUTEUSER=") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:3] Set("IAX2/JEDPBX-11963", "ROUTEUSER=") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:4] GotoIf("IAX2/JEDPBX-11963", "1?notblind") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx_builtins.c: Goto (from-internal,0020233352873,7)
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx.c: Executing [[email protected]:7] GotoIf("IAX2/JEDPBX-11963", "0?,0020233352873,2:outbound-allroutes,0020233352873,2") in new stack
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] pbx_builtins.c: Goto (outbound-allroutes,0020233352873,2)
[2017-06-18 15:46:03] WARNING[25610][C-000000a5] pbx.c: Channel 'IAX2/JEDPBX-11963' sent to invalid extension but no invalid handler: context,exten,priority=outbound-allroutes,0020233352873,2
[2017-06-18 15:46:03] VERBOSE[25610][C-000000a5] chan_iax2.c: Hungup 'IAX2/JEDPBX-11963'
Goto (outbound-allroutes,0020233352873,2)
sent to invalid extension

You don’t appear to have a dial pattern in your outbound routes to handle this number.

My dial pattern was 00Z. I mad it “00Z.”.

Looks like I forgot the “.”. I’m trying now

Made my route rule “00.” And still facing the same error. Why the rule is not getting applied?

I have removed all routes and for Voxbeam route, I mase the rule “00.” And still the PBX is using JEDCloud trunk.

Maybe trunk contexts is the reason?

It works now. I had to make the pattern “.” This doesnt work for me. It means i will forward all outgoung calls through this SIP trunk. Which is not good.

Maybe you had wrong order at your outbound routes, make the same routes but put the one to use over the others.