[Asterisk-Users] Cant get Asterisk server talk with IAX

Chicku chicku at gawab.com
Mon Dec 27 21:44:13 MST 2004



Hi everyone,

I am trying to connect 2 asterisk servers via IAX, but it just
fails to do so.. I'm using SIP to connect the IP phones on the
LAN at the 2 different physical locations where each server
resides and I'm able to communicate on my LAN via SIP without
any issues. The problem is that I'm unable to make Asterisk
servers talk with each other via IAX.. 

Here is my issue.

I've got one asterisk server connected directly to the internet
and the other behind a NAT.  

----
The iax.conf file for the one that is directly connected to the
internet is as follows:

[general]
bindport = 4569           ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on
machine)
delayreject=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
jitterbuffer=yes
mailboxdetail=yes
                                                                
               
#include iax_additional.conf [I'm using AMP as the GUI
interface]
                                                                
               
register => 1000:password at a.b.c.d

[a.b.c.d is the IP address of the router. ie. the server is
behind the nat]
                                                                
               
[2000] 
type=user
username=2000
auth=plaintext
permit=a.b.c.d/255.255.255.0
host=dynamic
context=fullaccess

My extension.conf is as follows for the server that is directly
connected to internet.:

[fullaccess]
exten => _5XXX,1,Dial(IAX2/1000 at a.b.c.d/${EXTEN})
exten => _5XXX,2,Hangup
exten => _5XXX,102,Hangup
--------------

Now the iax.conf file for the one behind NAT is as follows:


[general]
bindport = 4569           ; Port to bind to (IAX is 4569)
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on
machine)
delayreject=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
jitterbuffer=yes
mailboxdetail=yes
                                                                
               
#include iax_additional.conf
                                                                
               
register => 2000:password at 66.151.89.145
                                                                
               
[1000]
type=user
username=1000
auth=plaintext
permit=0.0.0.0/0.0.0.0
host=dynamic
context=fullaccess

My extension.conf is as follows for the server that is behind
NAT:

[fullaccess]
exten => _6XXX,1,Dial(IAX2/2000 at 66.151.89.145/${EXTEN})
exten => _6XXX,2,Hangup
exten => _6XXX,102,Hangup
---------------------------------------------
Free POP3 Email from www.Gawab.com 
Sign up NOW and get your account @gawab.com!!



More information about the asterisk-users mailing list