IAX Issues

Had IAX working between a number of servers for months however just recently (2 weeks) a number of servers can no longer communicate with each other even though they are showing as visible to each server.

Errors include Active Channels with unknown format.

Channel Peer Username ID (Lo/Rem) Seq (Tx/Rx) Lag Jitter JitBuf Format FirstMsg LastMsg
(None) 192.XX.XXX.XXX (None) 17627/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 19308/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 19871/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 19981/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 43.2XX.XX.XXX (None) 20906/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 43.2XX.XX.XXX (None) 22485/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 22814/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 23549/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 43.2X.XX.XXX (None) 23739/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 24034/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 24242/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 24605/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 25830/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 43.2XX.XX.XXX (None) 25874/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 26199/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 28119/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 29169/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 43.24X.XXX.XXX (None) 29434/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 29497/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 29765/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 30035/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 30647/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 31394/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
(None) 103.6.1X.XXX (None) 31726/00000 00000/00000 00000ms -0001ms 0000ms Unknow Rx:Unknown Rx:Unknown
24 active IAX channels

Also errors relating to Enforced Encryption,

[2017-04-06 14:28:07] NOTICE[30742][C-00000261] chan_iax2.c: Call initiated without encryption while forceencryption=yes option is set
[2017-04-06 14:28:07] WARNING[30742][C-00000261] chan_iax2.c: I don’t know how to authenticate 02XXXXXXXXXX to XXX.XXX.XX.XX8:4569

I am really not sure what has happened but a number of servers have just stopped being able to send and receive calls whereas they have been working for many many months. This all happened after recent upgrades and to more than one server however I cannot pinpoint what has affected things.

There is a recent bug in the core module that is probably affecting you:

http://issues.freepbx.org/browse/FREEPBX-14455

You can fix with a core rollback.

To which core version do I need to rollback?

I don’t know a specific version. I rolled back to 13.0.113 which fixed the issue, but is probably further back than is necessary.

When rolling back core, do I need to worry about other modules that have been upgraded but are dependent on a later version of core to run properly?

I’m having this issue as well. 2 Installs, linked to each other. Both also registering to voip.ms. One works, the other does not.

PBX-A (Works)
Trunk ToB
username=A
secret=password
host=192.168.1.xxx
type=friend
context=from-internal
qualify=yes
qualifyfreqok=25000
transfer=no
trunk=yes
forceencryption=yes
encryption=yes
auth=md5
disallow=all
allow=ulaw

Trunk voipms
host=montreal6.voip.ms
username=123456
secret=secretpassword
type=friend
context=from-trunk
disallow=all
allow=ulaw
insecure=port,invite
requirecalltoken=no
qualify=yes
forceencryption=no

/etc/asterisk/iax_registrations.conf

allow=ulaw
disallow=all
auth=md5
encryption=yes
forceencryption=yes
trunk=yes
transfer=no
qualifyfreqok=25000
qualify=yes
context=from-internal
type=friend
host=192.168.1.xxx
secret=secretpassword
username=A
forceencryption=no
register=123456:[email protected]
qualify=yes
requirecalltoken=no
insecure=port,invite
allow=ulaw
disallow=all
context=from-trunk
type=friend
secret=secretpassword
username=123456
host=montreal6.voip.ms

Both PBXs can talk to each other.

PBX A can make and receive calls to voipms
PBX B can only receive calls from voipms. Outbound fails with the encrytion message.

Both are 13.0.190.19

PBX B (does not work)
Trunk ToA
username=B
secret=password
host=192.168.5.xxx
type=friend
context=from-internal
qualify=yes
qualifyfreqok=25000
transfer=no
trunk=yes
disallow=all
allow=ulaw
forceencryption=yes
encryption=yes
auth=md5

Trunk voipms
host=toronto3.voip.ms
username=654321
secret=secretpassword
type=friend
context=from-trunk
disallow=all
allow=ulaw
insecure=port,invite
requirecalltoken=no
qualify=yes
forceencryption=no

/etc/asterisk/iax_registrations.conf

register=654321:[email protected]:4569
forceencryption=no
qualify=yes
requirecalltoken=no
insecure=port,invite
allow=ulaw
disallow=all
context=from-trunk
type=friend
secret=secretpassword
username=654321
host=toronto3.voip.ms
auth=md5
encryption=yes
forceencryption=yes
allow=ulaw
disallow=all
trunk=yes
transfer=no
qualifyfreqok=25000
qualify=yes
context=from-internal
type=friend
host=192.168.5.xxx
secret=secretpassword
username=B

In case it helps anyone… I rolled the core module back from 13.0.119.3 to 13.0.119.1, then 13.0.118.18, and finally to 13.0.118.6 which worked. The first three I tried all seem to have the issue which causes outbound IAX not to work.

Unlike the OP this occured for me on any outbound IAX trunks.

Any reason why you didn’t just upgrade to core version 13.0.119.4? The ticket linked above shows it as fixed and published in that version.

I did a “Check Online” in Modules Admin and 13.0.119.3 is the current available core version. From the ticket you referenced it looked like I would need to download a beta or pre-release version.