[HELP] IAX2 Remote Extension NOT working

I would appreciate anyone’s feedback to why my IAX2 remote extension out on the Internet is not working… I have the iax.conf; extensions.conf and other troubleshooting logs attached… Thanks.

  1. I have IDEFISK now Zoiper IAX client setup correctly

  2. I have the IAX.conf correct (is attached) - I have doubled checked and showed to some other forums…

  3. I have IAX2 4569 the ports forwarded from my Linksys Router/Firewall to my Asterisk Server … If do TCPDUMP I can see server client public Internet address and IAX2 port 4569 hitting my Asterisk server

  4. My Firewall on Asterisk server allows all 4569 port from any private and public Internet address

  5. I use a cable modem so I have dynamic DNS address registered and it advertised from my Linksys Router to dyndns.org

I’m at loss and do not understand what I’m missing. I would really appreciate if you could eyeball my config… Below are conf files and logs

**of course some info has been chaned to protect the innocent :wink:

Thanks.

======iax.conf============
[general]

bindport=4569
bindaddr = 0.0.0.0
deny=0.0.0.0/0.0.0.0
externhost=asterisk-server.dyndns.org
localnet = 192.168.1.0/255.255.255.0

disallow=all
allow=ulaw
allow=gsm
delayreject=yes
iaxcompat=yes
nochecksums=no
delayreject=yes

[2000]
type=friend
context=internal-phones
secret=test
host=dynamic

[2001]
type=friend
context=internal-phones
secret=test
host=dynamic

[2002]
type=friend
context=internal-phones
secret=test
qualify=yes
qualifysmoothing=yes
host=dynamic

[2003]
type=friend
context=internal-phones
secret=test
qualify=yes
qualifysmoothing=yes
host=dynamic

==========extensions.conf=================
[global]

[internal-phones]
exten => 2000,1,Dial(IAX2/2000)
exten => 2001,1,Dial(IAX2/2001)
exten => 2002,1,Dial(IAX2/2002)
exten => 2003,1,Dial(IAX2/2003)

========troubleshooting log================
The remote extions gets all the way to my Asterisk server and here is the Firewall -> TCPDUMP port 4569

17:28:37.087969 IP 12.174.122.91.iax > 192.168.1.50.iax: UDP, length 22
17:28:47.063469 IP 12.174.122.91.iax > 192.168.1.50.iax: UDP, length 22

=========================================================================

Port Forward ->

I have My Linksys router forwarding port 4569 to my Asterisk Server 192.168.1.50

My Linux Ubutu server /etc/host

#:/etc$ vi hosts
127.0.0.1 localhost.localdomain localhost

The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

====iAX2 show peers========================

Asterisk Server IAX2 show ->
lumaza*CLI> iax2 show peers
Name/Username Host Mask Port Status
2003 (Unspecified) (D) 255.255.255.255 0 UNKNOWN -> Remote Extension out on the Internet
2002 192.168.1.50 (D) 255.255.255.255 4570 OK (1 ms) -> local on Asterisk server
2001 (Unspecified) (D) 255.255.255.255 0 Unmonitored
2000 192.168.1.103 (D) 255.255.255.255 4569 Unmonitored -> Local ext on the same subnet
4 iax2 peers [1 online, 1 offline, 2 unmonitored]

when I call a local extension say 2000 to 2002 it works just fine

=======Local Extensions work fine=================

Local Subnets Extensions work great–>

– Accepting AUTHENTICATED call from 192.168.1.103:
> requested format = ulaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw|gsm),
> priority = mine
– Executing [2002@internal-phones:1] Dial(“IAX2/2000-3”, “IAX2/2002”) in new stac k
– Called 2002
– Call accepted by 192.168.1.50 (format ulaw)
– Format for call is ulaw
– IAX2/2002-5 is ringing
=============Remote Extension Not working=========

Remote Extension does NOT work and can not register… Here is the verbose output

lumaza*CLI>
– Accepting AUTHENTICATED call from 192.168.1.103:
> requested format = ulaw,
> requested prefs = (),
> actual format = ulaw,
> host prefs = (ulaw|gsm),
> priority = mine
– Executing [2003@internal-phones:1] Dial(“IAX2/2000-4”, “IAX2/2003”) in new stack
[Mar 21 23:05:07] WARNING[13014]: app_dial.c:1196 dial_exec_full: Unable to create channel of type ‘IAX2’ (cause 3 - No route to destination)
== Everyone is busy/congested at this time (1:0/0/1)
== Auto fallthrough, channel ‘IAX2/2000-4’ status is ‘CHANUNAVAIL’
– Hungup ‘IAX2/2000-4’

What does iax2 show peers say ? as set qualify=yes (or a value)

IAN

The CLI is telling you:

cause 3 - No route to destination

The fact that the server has no route to the extension and the extension cannot register suggests that the extension cannot see the server means you have some kind of network problem. Is your extension able to ping the server [public] address? That seems like the logical starting point.

The CLI is telling you:

cause 3 - No route to destination

The fact that the server has no route to the extension and the extension cannot register suggests that the extension cannot see the server suggests you have a network problem. Is your extension able to ping the server [public] address? That seems like the logical starting point.

Thanks guys… The IAX2 show peers look like this below. The qualify=yes for both ext 2002 & 2003 as they are the remote extension out on the Internet
====iAX2 show peers========================
Asterisk Server IAX2 show ->
lumaza*CLI> iax2 show peers
Name/Username Host Mask Port Status
2003 (Unspecified) (D) 255.255.255.255 0 UNKNOWN -> Remote Extension out on the Internet
2002 192.168.1.50 (D) 255.255.255.255 4570 OK (1 ms) -> local on Asterisk server
2001 (Unspecified) (D) 255.255.255.255 0 Unmonitored
2000 192.168.1.103 (D) 255.255.255.255 4569 Unmonitored -> Local ext on the same subnet
4 iax2 peers [1 online, 1 offline, 2 unmonitored]

[quote=“mudslide567”]The CLI is telling you:

cause 3 - No route to destination

The fact that the server has no route to the extension and the extension cannot register suggests that the extension cannot see the server suggests you have a network problem. Is your extension able to ping the server [public] address? That seems like the logical starting point.[/quote]

Thanks. Yes understood and that’s my fundamental problem… 4569 is forwarded on the Linksys Router to the Asterisk server… I get to server via port 4569 out from the Internet because I see it on TCPDUMP

17:28:37.087969 IP 12.174.122.91.iax > 192.168.1.50.iax: UDP, length 22
17:28:47.063469 IP 12.174.122.91.iax > 192.168.1.50.iax: UDP, length 22

you can see the 4569 hitting my server.

The server /etc/host looks like this -->
#:/etc$ vi hosts
127.0.0.1 localhost.localdomain localhost

The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

I use a cable modem and behind a NAt’d address so is the Ext but I can get to server but I think the problem my Asterisk server can not find a route back to the IAX2 client… Am I missing anything on config that would help resolve this?

THanks,

Mohamed

Can you do some logging on the Linksys it sounds like your maybe correct can’t get out/back

what is the network configuration of the server? IP address(es), gateway(s)? do you have more than a single IP address on the server? is the server able to access the internet properly aside from this problem?

just a minor point, but did you forward all port 4569 traffic on the linksys to the server? i realize your snippet is just a snip but they only show UDP traffic. for IAX it needs to be both TCP & UDP.