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.
-
I have IDEFISK now Zoiper IAX client setup correctly
-
I have the IAX.conf correct (is attached) - I have doubled checked and showed to some other forums…
-
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
-
My Firewall on Asterisk server allows all 4569 port from any private and public Internet address
-
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
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