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

Sojesh sojesh at webcreators.com
Tue Dec 28 06:05:16 MST 2004


Hi Dave,

Thank you for the sample config file for IAX... But, that didnt help
me.. Also, I have the entries for 5001 in sip.conf. But, I'm not sure if
it is correct.. So, can you please show me yor sample sip and iax files.

Really appreciate your help.

Thank you,
Soj

On Tue, 2004-12-28 at 17:22, David J Carter wrote:
> Sojesh,
> 
> My IAX configs look like below: -
> 
> ;Server A
> 
> register=wilma:fred at serverb_address
> 
> [fred]
> type=yes
> deny=0.0.0.0/0.0.0.0
> permit=serverb_address/255.255.255.255
> secret=wilma
> 
> 
> ;Server B
> 
> register=fred:wilma at servera_address
> 
> [wilma]
> type=user
> deny=0.0.0.0/0.0.0.0
> permit=servera_address/255.255.255.255
> secret=fred
> 
> make sure you have the entries in your sip.conf for the extensions as part
> of the debug output looks like 5001 does not exist.
> 
> Dave
> 
> -----Original Message-----
> From: Sojesh [mailto:sojesh at webcreators.com]
> Sent: 28 December 2004 11:37
> To: david.carter at codepipe.com; asterisk-users at lists.digium.com
> Subject: RE: [Asterisk-Users] Cant get Asterisk server talk with IAX
> 
> 
> 
> Hi Dave,
> 
> Thank you for your quick response.
> 
> I'm using Netgear 54Mbps Wireless Router WGR614v3 and I have forwarded
> the ports as follows :
> 
> 
>      #
> Service Name
>  Start Port
>   End Port
>  Server IP
>   Address
> 
>      1
>   Asterisk
>     4569
>     4569
> 192.168.0.2
> When I try to connect from the server that is connected directly to the
> internet to the one behind NAt, I get the following in my logs in my
> server that is connected directly to the internet.
> 
> 
> Dec 28 03:24:31 DEBUG[19846]: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl
> for peer
> Dec 28 03:24:31 DEBUG[19846]: 127.0.0.1/255.255.255.0/255.255.255.0
> appended to acl for peer
> Dec 28 03:24:31 DEBUG[19846]: ##### Testing 127.0.0.1 with 0.0.0.0
> Dec 28 03:24:31 DEBUG[19846]: ##### Testing 127.0.0.1 with 127.0.0.0
> Dec 28 03:24:31 VERBOSE[19846]:   == Manager 'admin' logged on from
> 127.0.0.1
> Dec 28 03:24:31 DEBUG[19846]: Raw Hangup a.b.c.d:4569, src=0, dst=1
> Dec 28 03:24:31 DEBUG[19846]: Raw Hangup a.b.c.d:4569, src=0, dst=1
> Dec 28 03:24:41 DEBUG[19846]: Manager received command 'Command'
> Dec 28 03:24:51 DEBUG[19846]: Manager received command 'Command'
> Dec 28 03:25:01 DEBUG[19846]: Manager received command 'Command'
> Dec 28 03:25:01 NOTICE[19846]: No registration for peer '2000' (from
> 203.109.116.99)
> Dec 28 03:25:11 DEBUG[19846]: Manager received command 'Command'
> Dec 28 03:25:16 NOTICE[19846]: Registration of '1000' rejected:
> Registration Refused
> Dec 28 03:25:21 DEBUG[19846]: Manager received command 'Command'
> 
> 
> 
> The logs on the server that is behind the NAT is as follows:
> 
> 
> Dec 28 16:53:34 NOTICE[25845]: No registration for peer '1000' (from
> 66.151.89.145)
> Dec 28 16:53:37 DEBUG[25845]: Manager received command 'Command'
> Dec 28 16:53:47 DEBUG[25845]: Manager received command 'Command'
> Dec 28 16:53:52 DEBUG[25845]: ##### Testing 66.151.89.145 with 0.0.0.0
> Dec 28 16:53:52 NOTICE[25845]: Rejected connect attempt from
> 66.151.89.145, request '5001 at fullaccess' does not exist
> Dec 28 16:53:57 DEBUG[25845]: Manager received command 'Command'
> Dec 28 16:54:02 NOTICE[25845]: Registration of '2000' rejected:
> Registration Refused
> Dec 28 16:54:07 DEBUG[25845]: Manager received command 'Command'
> Dec 28 16:54:17 DEBUG[25845]: Manager received command 'Command'
> Dec 28 16:54:24 NOTICE[25845]: No registration for peer '1000' (from
> 66.151.89.145)
> 
> The problem is getting the 2 servers to register.. Can you please let me
> know what could be the reason? Is it the problem with the "register"
> line in both the server which is mentioned as "host-dynamic"?
> 
> Thanks,
> Soj
> 
> 
> On Tue, 2004-12-28 at 16:40, David J Carter wrote:
> > Hi,
> >
> > Have you got port 4569 open in your NAT/Firewall?
> >
> > I take it that your extension ranges on the servers are 5000 and 6000
> range.
> >
> > The configs look OK, same as mine, and mine works fine.
> >
> > Regards
> >
> > Dave
> >
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com
> > [mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Chicku
> > Sent: 28 December 2004 04:44
> > To: asterisk-users at lists.digium.com
> > Subject: [Asterisk-Users] Cant get Asterisk server talk with IAX
> >
> >
> >
> >
> > 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!!
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> 




More information about the asterisk-users mailing list