IAX2 trunk not allowing 10 digit calls through

I’m trying to configure an iax2 trunk between my primary pbx and one I’m configuring for a client (to allow the new pbx to call out/receive calls for testing as it’s not connected to an external SIP provider yet, I’ve done this with every PBX I setup).

On my primary PBX I have an inbound route tied to an unused DID, this routes the call to the iax2 trunk. On the new PBX there’s another inbound route which watches for this DID then sends it to the destination (will be an IVR but for testing I tried the IVR, a direct extension, and others and nothing works). When the call comes through like this I get “Your call cannot be completed as dialed, please try again later”.

It looks to be complaining of either being “Busy” or “Congested” I haven’t been able to find anything talking about why this is happening.

The primary pbx outputs this log:

97958	[2023-07-11 15:36:06] VERBOSE[5024][C-00000274] chan_iax2.c: Call accepted by 10.0.15.105:4569 (format ulaw)	
97959	[2023-07-11 15:36:06] VERBOSE[5024][C-00000274] chan_iax2.c: Format for call is (ulaw)	
97960	[2023-07-11 15:36:06] VERBOSE[24853][C-00000274] app_dial.c: IAX2/pbx01-12215 is making progress passing it to PJSIP/216-000004d2	
97961	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] app_dial.c: IAX2/pbx01-12215 is circuit-busy	
97962	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] chan_iax2.c: Hungup 'IAX2/pbx01-12215'	
97963	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] app_dial.c: Everyone is busy/congested at this time (1:0/1/0)	
97964	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [s@macro-dialout-trunk:29] NoOp("PJSIP/216-000004d2", "Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 34") in new stack	
97965	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [s@macro-dialout-trunk:30] GotoIf("PJSIP/216-000004d2", "0?continue,1:s-CONGESTION,1") in new stack	
97966	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx_builtins.c: Goto (macro-dialout-trunk,s-CONGESTION,1)	
97967	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [s-CONGESTION@macro-dialout-trunk:1] Set("PJSIP/216-000004d2", "RC=34") in new stack	
97968	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [s-CONGESTION@macro-dialout-trunk:2] Goto("PJSIP/216-000004d2", "34,1") in new stack	
97969	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx_builtins.c: Goto (macro-dialout-trunk,34,1)	
97970	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [34@macro-dialout-trunk:1] Goto("PJSIP/216-000004d2", "continue,1") in new stack	
97971	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)	
97972	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [continue@macro-dialout-trunk:1] NoOp("PJSIP/216-000004d2", "TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 34 - failing through to other trunks") in new stack	
97973	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [continue@macro-dialout-trunk:2] ExecIf("PJSIP/216-000004d2", "1?Set(CALLERID(number)=216)") in new stack	
97974	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [22342099356@hcd-cis-outbound:12] Macro("PJSIP/216-000004d2", "outisbusy,") in new stack	
97975	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [s@macro-outisbusy:1] Progress("PJSIP/216-000004d2", "") in new stack	
97976	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [s@macro-outisbusy:2] GotoIf("PJSIP/216-000004d2", "0?emergency,1") in new stack	
97977	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [s@macro-outisbusy:3] GotoIf("PJSIP/216-000004d2", "0?intracompany,1") in new stack	
97978	[2023-07-11 15:36:14] VERBOSE[24853][C-00000274] pbx.c: Executing [s@macro-outisbusy:4] Playback("PJSIP/216-000004d2", "all-circuits-busy-now&please-try-call-later, noanswer") in new stack

This is the log from the new pbx:

89039	[2023-07-11 15:45:37] VERBOSE[27124][C-00000012] pbx.c: Executing [2342099356@from-internal:1] ResetCDR("IAX2/pbx01-13498", "") in new stack	
89040	[2023-07-11 15:45:37] VERBOSE[27124][C-00000012] pbx.c: Executing [2342099356@from-internal:2] NoCDR("IAX2/pbx01-13498", "") in new stack	
89041	[2023-07-11 15:45:37] VERBOSE[27124][C-00000012] pbx.c: Executing [2342099356@from-internal:3] Progress("IAX2/pbx01-13498", "") in new stack	
89042	[2023-07-11 15:45:37] VERBOSE[27124][C-00000012] pbx.c: Executing [2342099356@from-internal:4] Wait("IAX2/pbx01-13498", "1") in new stack	
89043	[2023-07-11 15:45:38] VERBOSE[27124][C-00000012] pbx.c: Executing [2342099356@from-internal:5] Playback("IAX2/pbx01-13498", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack	
89044	[2023-07-11 15:45:38] VERBOSE[27124][C-00000012] file.c: <IAX2/pbx01-13498> Playing 'silence/1.ulaw' (language 'en')	
89045	[2023-07-11 15:45:39] VERBOSE[27124][C-00000012] file.c: <IAX2/pbx01-13498> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')	
89046	[2023-07-11 15:45:41] VERBOSE[27124][C-00000012] file.c: <IAX2/pbx01-13498> Playing 'check-number-dial-again.ulaw' (language 'en')	
89047	[2023-07-11 15:45:44] VERBOSE[27124][C-00000012] pbx.c: Executing [2342099356@from-internal:6] Wait("IAX2/pbx01-13498", "1") in new stack	
89048	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] pbx.c: Executing [2342099356@from-internal:7] Congestion("IAX2/pbx01-13498", "20") in new stack	
89049	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] pbx.c: Spawn extension (from-internal, 2342099356, 7) exited non-zero on 'IAX2/pbx01-13498'	
89050	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] pbx.c: Executing [h@from-internal:1] Macro("IAX2/pbx01-13498", "hangupcall") in new stack	
89051	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("IAX2/pbx01-13498", "1?theend") in new stack	
89052	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] pbx_builtins.c: Goto (macro-hangupcall,s,3)	
89053	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("IAX2/pbx01-13498", "0?Set(CDR(recordingfile)=)") in new stack	
89054	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] pbx.c: Executing [s@macro-hangupcall:4] Hangup("IAX2/pbx01-13498", "") in new stack	
89055	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'IAX2/pbx01-13498' in macro 'hangupcall'	
89056	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'IAX2/pbx01-13498'	
89057	[2023-07-11 15:45:45] VERBOSE[27124][C-00000012] chan_iax2.c: Hungup 'IAX2/pbx01-13498'

I have an outbound route setup that allows me to call extensions through this IAX trunk, that works just fine. The trunk shows on both sides it’s registered…

Please let me know what other info you need.

Not saying IAX2 is your issue but why not use pjsip trunk between the systems?

To be honest I was told IAX2 is better, not sure in what ways but it was supposed to run better so I’ve just been using it… I can try to throw a PJSIP trunk together.

Well that was… too easy. Was able to set it up in seconds with no auth, obviously probably smarter to use auth but this will let me test.

Thanks

Pretty sure there is no further development happening on IAX2 at this point. PJSIP is the way to go.

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