IAX2 Trunk setup issue

I am trying to do a simple IAX2 truck between two new FreePBX servers.

I used the FreePBX-64bit-10.13.66.iso image to setup 2 Virtual Machines.

iax2 show peers show:
vpbx*CLI> iax2 show peers
Name/Username Host Mask Port Status Description
vpbx2/vpbx 10.12.14.45 (S) 255.255.255.255 4569 (T) OK (3 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]

( something similar on vpbx2… )

I have a 6111 extension setup on one pbx and 7111 extension setup on the 2nd pbx image.

I can call 6111 from the pbx with that extension and get the Voice Mail for that extension and that phone extension rings.

I can call 7111 from the pbx with that extension and get the Voice Mail for that extension and that phone extension rings.

I am not 100% sure what to set on the outbound dial routes. I have +7XXX on the one pbx and +6XXX on the 2nd pbx. ( +7XXX is on the pbx image with the 6111 extension. )

when I am on the 6111 phone and dial 7111 the log on the server that has the 6111 extension shows:
[2016-04-10 15:41:22] VERBOSE[17172][C-00000010] pbx.c: Executing [[email protected]:1] ResetCDR(“PJSIP/6111-00000010”, “”) in new stack
[2016-04-10 15:41:22] VERBOSE[17172][C-00000010] pbx.c: Executing [[email protected]:2] NoCDR(“PJSIP/6111-00000010”, “”) in new stack
[2016-04-10 15:41:22] VERBOSE[17172][C-00000010] pbx.c: Executing [[email protected]:3] Progress(“PJSIP/6111-00000010”, “”) in new stack
[2016-04-10 15:41:22] VERBOSE[17172][C-00000010] pbx.c: Executing [[email protected]:4] Wait(“PJSIP/6111-00000010”, “1”) in new stack
[2016-04-10 15:41:23] VERBOSE[17172][C-00000010] pbx.c: Executing [[email protected]:5] Progress(“PJSIP/6111-00000010”, “”) in new stack
[2016-04-10 15:41:23] VERBOSE[17172][C-00000010] pbx.c: Executing [[email protected]:6] Playback(“PJSIP/6111-00000010”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
.
.
.

the pbx with the 7111 extention does not see ANYTHING.

It seems like my +7XXX dial pattern on the outgoing route does not work.

When I edit the iax2 trunk that I created ( on both pbx servers ) it says: In use by 1 route on both servers.

Since the iax2 show peers shows the link… I am assuming that that part of the config is ok. I don’t know why when I do 7111 from the 6111 extension it doesn’t do anything on the remote server.

Thanks - jack

+ is a meta character to match your locale’s international dialing rules, so inappropriate for a tie-line.

Try just 7xxx or better _7xxx , the initial _ triggers a pattern match.

Thanks. That seemed to do the trick. I at least saw things getting sent between the two systems. I had to change my iax peer setting too: I did NOT have the “qualify=yes” setting there before… after I added that and the different dialing pattern things started working. Thanks again.

host=
username=
secret=
type=friend
context=from-internal
transfer=no
allow=alaw&ulaw
disallow=all
qualify=yes

You have:-

allow=alaw&ulaw
disallow=all

This will effectively disable any codecs that could handle the traffic as the “last soldier standing” pertains and you just shot them all :wink: