GO HERE (DTS) PROBLEM with IAX2-to-IAX2 trunk between local PiaF(s)

TomS

Guru
Joined
Oct 18, 2007
Messages
240
Reaction score
6
My PiaF Systems are:
Dell T105 CentOS 6.6 -
Asterisk Version = 11.17.1 Incredible GUI = 2.11.0.34
RPi-2 Raspian 7.x wheezy -
Asterisk Version = 11.18.0 Incredible GUI = 12.0.30

I used the Telecomworld setups for:
1. Setup a SIP-to-SIP trunk between my Dell and my RPi-2:
It works just fine!

2. Setup an IAX2-to-IAX2 trunk between my Dell and my RPi-2:
It only works from the Dell to the RPi-2 - fails in reverse.

Setup on DELL PBX 151 (IP .151)
IP address = 192.168.x.151

Outgoing Settings:
Trunk Name: 120-IAXpeer
host = 192.168.x.120
username = 151IAXuser
secret = abc
type = peer
qualify = yes
trunk = yes
requirecalltoken = no

Incoming Settings:
User Context: 120-IAXuser
secret = abc
type = user
context = from-trunk



Setup on RPi-2 PBX 120 (IP .120)
IP address = 192.168.x.120

Outgoing Settings:
Trunk Name: 151-IAXpeer
host = 192.168.x.151
username = 120IAXuser
secret = abc
type = peer
qualify = yes
trunk = yes
requirecalltoken = no

Incoming Settings:
User Context: 151-IAXuser
secret = abc
type = user
context = from-trunk

I have tried multiple other parameters from other documents
but I have not had any luck thus far.
Both systems are pretty much newer IAX2 protocols.
Both systems are in my basement on the same LAN segment.
SIP and IAX2 phones work just fine.

Troubleshooting thus far:
asterisk -rx "iax2 show peers"

On PBX 151:
Name/Username Host Mask Port Status Description
120-IAXpeer/151 192.168.x.120 (S) 255.255.255.255 4569 (T) UNREACHABLE

On PBX 120:
Name/Username Host Mask Port Status Description
151-IAXpeer/120 192.168.x.151 (S) 255.255.255.255 4569 (T) OK (1 ms)

I have tried stopping the iptables on both machines - no change.
Dell CentOS 6.6 - 'service iptables stop'
RPi-2 wheezy - '/etc/init.d/iptables stop'

Has anyone else tried the IAX2-to-IAX2 trunking lately?
I've been playing with this for over a week now.
All assistance is greatly appreciated!

Thanks
Tom Schmitt (TomS)
 

TomS

Guru
Joined
Oct 18, 2007
Messages
240
Reaction score
6
phonebuff

Those are the spreadsheets that I used to create both the SIP and IAX2 trunks.
I always keep a copy of both of them on my PC as they are very informative.

The IAX2 trunk used to work just fine a few years ago for me.
I guess that was before the security change(s) to IAX2.

I cannot seem to see what I have missed in the first entries above?

Both 'username=120-IAXpeer and username=151-IAXpeer) were typos.

I removed the 'qualify=yes' in both peer entries and no change.
I then changed 'context=from-trunk' to 'context=from-internal' and no change.

Any more ideas would be greatly appreciated!

Thanks
TomS
 

comet48

New Member
Joined
Aug 19, 2010
Messages
15
Reaction score
0
I have the same issue. Can get from the current RP2 version to an older RP1 version, but from the RP1 to the RP2. The path is UNREACHABLE. There seems to be something in this current RP2 version that's stopping IAX connections.
 

phonebuff

Guru
Joined
Feb 7, 2008
Messages
1,117
Reaction score
129
So what is showing up for errors in the failed box in /var/log/asterisk/full

-------
 

comet48

New Member
Joined
Aug 19, 2010
Messages
15
Reaction score
0
Also having trouble getting Zoiper to register to an IAX extension. No problems with sip!
 

comet48

New Member
Joined
Aug 19, 2010
Messages
15
Reaction score
0
[2015-08-17 09:16:02] ERROR[2945] res_config_ldap.c: No directory URL or host found.
[2015-08-17 09:16:02] ERROR[2945] res_config_ldap.c: Cannot load LDAP RealTime driver.
[2015-08-17 09:16:02] ERROR[2945] netsock2.c: getaddrinfo("raspberrypi2", "(null)", ...): Name or service not known
[2015-08-17 09:16:02] VERBOSE[2945] tcptls.c: SSL error loading cert file. <asterisk.pem>
[2015-08-17 09:16:03] ERROR[2945] pbx.c: Function ODBC_TIMECLOCK already registered.
[2015-08-17 09:16:03] ERROR[2945] pbx.c: Function ODBC_ASTERIDEX already registered.
[2015-08-17 09:16:03] ERROR[2945] pbx.c: Function ODBC_TRAVMAN4 already registered.
 

bucasia

Guru
Joined
Sep 26, 2008
Messages
98
Reaction score
1
I think that's a DNS issue. It's trying to resolve "raspberrypi2" to an IP. Should it be in your hosts file?
 

Members online

Forum statistics

Threads
25,812
Messages
167,764
Members
19,241
Latest member
bellabos
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top