IAX trunk suddenly Reject, cause code 50 in one direction

I got an IAX trunk between two Asterisk servers over the Internet, both behind NAT with ports forwarded. One system is HA.
Since yesterday I can only make calls into one direction, in the other one I get a REJECT, no authority found, CAUSE CODE 50.
Nothing has changed that I am aware of. What could be going on?

IAX2 debug on system1, which is HA.
Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 001 Type: IAX Subclass: AUTHREQ
Timestamp: 00017ms SCall: 01675 DCall: 22428 [PublicIPaddress-system2:31071]
AUTHMETHODS : 3
CHALLENGE : \x31\x39\x35\x39\x30\x32\x36\x32\x32
USERNAME : 5316

Rx-Frame Retry[ No] – OSeqno: 001 ISeqno: 001 Type: IAX Subclass: AUTHREP
Timestamp: 00243ms SCall: 22428 DCall: 01675 [PublicIPaddress-system2:31071]
MD5 RESULT : e692c0e61eec9866e81c6ec364751f9d

Tx-Frame Retry[-01] – OSeqno: 001 ISeqno: 002 Type: IAX Subclass: ACK
Timestamp: 00243ms SCall: 01675 DCall: 22428 [PublicIPaddress-system2:31071]
Tx-Frame Retry[000] – OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REJECT
Timestamp: 00135ms SCall: 01675 DCall: 22428 [PublicIPaddress-system2:31071]
CAUSE : No authority found
CAUSE CODE : 50

Trunk name: system1
user=system2
type=friend
transfer=no
secret=1111111111
qualifyfreqok=25000
qualify=yes
host=hostname of system1
context=from-internal

Trunk name: system2
user=system1
type=friend
trunk=yes
transfer=no
secret=1111111111
qualify=yes
qualifyfreqok=25000
host=IPaddress of system2
context=from-internal

Both FreePBX 13 machines, one with Asterisk 13, the other with 11.

There was a similar post from last week about IAX2 trunks suddenly failing. Lorne suggested a core rollback, IIRC. I don’t remember the root cause.

1 Like

I had a problem a while back on an IAX trunk after doing an update. Not sure if it’ll help you in your case (I don’t recall the error I was getting) but I resolved it by putting “forceencryption=no” in the Peer and User details of the trunk.