Cannot connect using a trunk

I have 2 servers running freepbx, bruce and zp-intern.
I want to connect them using a IAX2 trunk.

ON ZP INTERN


Outgoing Settings

Trunk Name: bruce-peer
PEER Details:
host=192.168.56.5
port=7410
username=zp-intern-user
secret=test1234
type=peer
qualify=yes
trunk=no

Incoming Settings

USER Context: bruce-user
USER Details:
secret=test1234
type=user
context=from-trunk

On outbound routes page bruce-peer is selected

IAX2 Show Users :
Username Secret Authen Def.Context A/C Codec Pref
bruce-user test1234 000000000000003 from-trunk No Host

IAX2 Show Peers :
Name/Username Host Mask Port Status
bruce-peer/zp-i 192.168.56.5 (S) 255.255.255.255 7410 UNREACHABLE
1 iax2 peers [0 online, 1 offline, 0 unmonitored]

Log shows :
[Apr 4 11:41:04] NOTICE[10409] chan_iax2.c: Peer ‘bruce-peer’ is now UNREACHABLE! Time: 0

ON BRUCE


Outgoing settings

Trunk Name: zp-intern-peer
PEER Details:
host=192.168.56.2
port=7410
username=bruce-user
secret=test1234
type=peer
qualify=yes
trunk=no

Incoming Settings

USER Context:zp-intern-user
USER Details:
secret=test1234
type=user
context=from-trunk

On outbound routes page zp-intern-peer is selected

IAX2 show users :
Username Secret Authen Def.Context A/C Codec Pref
zp-intern-user test1234 000000000000003 from-trunk No Host

IAX2 show peers :
Name/Username Host Mask Port Status
zp-intern-peer/ 192.168.56.2 (S) 255.255.255.255 7410 UNREACHABLE
1 iax2 peers [0 online, 1 offline, 0 unmonitored]

Log shows :
[Apr 4 14:53:50] NOTICE[3929] chan_iax2.c: Peer ‘zp-intern-peer’ is now UNREACHABLE! Time: 0

SIP communication works well on both sides but not from one side to the other. Your call cannot be completed as dialed, please check the number and dial again is given when I try to call from one side to the other.

I have been searching for days now and can’t find the solution. Could use some help here since communication is getting expensive :slight_smile:

Did not change anything, still same messages

You need to add ‘context=from-internal’ to your trunks.

My log keeps giving following message now …

[Apr 4 18:40:56] VERBOSE[3928] chan_iax2.c: Tx-Frame Retry[001] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
[Apr 4 18:40:56] VERBOSE[3928] chan_iax2.c: Timestamp: 00016ms SCall: 07538 DCall: 00000 [192.168.56.1:7410]
[Apr 4 18:40:56] VERBOSE[3928] chan_iax2.c:
[Apr 4 18:41:15] VERBOSE[3938] chan_iax2.c: Tx-Frame Retry[000] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
[Apr 4 18:41:15] VERBOSE[3938] chan_iax2.c: Timestamp: 00015ms SCall: 00583 DCall: 00000 [192.168.56.1:7410]
[Apr 4 18:41:15] VERBOSE[3938] chan_iax2.c:
[Apr 4 18:41:16] VERBOSE[3933] chan_iax2.c: Tx-Frame Retry[001] – OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
[Apr 4 18:41:16] VERBOSE[3933] chan_iax2.c: Timestamp: 00015ms SCall: 00583 DCall: 00000 [192.168.56.1:7410]
[Apr 4 18:41:16] VERBOSE[3933] chan_iax2.c: