jonas.kellens at telenet.be
2009-May-04 08:03 UTC
[asterisk-users] Can someone help me with my IAX-registration
Thanks for the feedback ! I know the IP-address of my Asterisk-server. The WAN-interface of my Asterisk-box is set manually (ifcfg-eth1). I have port 4569 forwarded on my NAT/firewall. Strangely I have the same 'notice' when being attached directly to the internet (so no firewall in between). And set my WAN-interface to the IP I get from my ISP or even when obtained by DHCP. Doesn't solve a thing. I would like to bind Asterisk IAX to 1 IP-address, namely my WAN-interface. All my internal SIP-phones contact Asterisk through SIP, never IAX. Only my WAN-interface talks IAX2 with my IAX-provider. So binding to all interfaces... I would rather not. In IP-tables, port 4569 is open for WAN-interface. port 5060 is open for SIP on LAN-interface, also 10000:20000 is open for RTP on LAN-interface. So the binding-warning... doesn't make sense to me. Now for the problem of connecting to my IAX-provider : - I can ping the IP-address of the remote Asterisk-server - Cannot test netcat right now, but will do this evening. - I have send my IAX-provider an email asking for their iax.conf... - My Asterisk-server is able to contact the remote Asterisk-server but registration is rejected... (REGREJ on CLI). I personally think there is a configuration error in my user-account in their iax.conf-file ... Greetingz, Jonas.>----- Oorspronkelijk bericht ----- >Van: Steve Edwards [mailto:asterisk.org at sedwards.com]>Verzonden: maandag , mei 4, 2009 09:24 AM>Aan: stevend at moij.biz, 'Asterisk Users Mailing List - Non-Commercial Discussion'>Onderwerp: Re: [asterisk-users] Can someone help me with my IAX-registration> >On Mon, 4 May 2009, Steven J. Douglas wrote: > >> Maybe you can try leaving out bindport and bindaddr parameters first. >> The port defaults to 4569 anyway. As for the bindaddr, you should be >> using the IP Address of your interfaces. I am assuming you are using the >> IP Address obtained from your router. If that is the case, then asterisk >> will not be able to bind to that address. > >You are assuming that he does not know the address that will be assigned >by his DHCP server. I use DHCP to assign all addresses, both fixed and >leased. > >Leaving out bindaddr means "bind to 0.0.0.0" -- all addresses on the box. > >We haven't heard back if basic connectivity can be established. > >) Can you ping box a from box b? How about box b from box a? Not all ISPs >pass pings, so this test is not conclusive. > >) Can you use nc (Netcat) to send and receive packets on port 4569 from >box a to box b and vice versa? (Do this with Asterisk stopped on both >boxes.) If you can't, there may be some firewall you are not aware of in >your way. Once you identify the firewall, poke a hole for 4569 and then >restart the firewall. > >Thanks in advance, >------------------------------------------------------------------------ >Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST >Newline Fax: +1-760-731-3000
jonas.kellens at telenet.be
2009-May-04 09:54 UTC
[asterisk-users] Can someone help me with my IAX-registration
Gavin, My Asterisk-server has 2 interfaces : - eth0 = LAN-interface (for SIP-phones to register) - eth1 = WAN-interface (for IAX-trunking to IAX-provider) Asterisk is behind NAT (has internal IP-address 192.168.3.248 for WAN_if) SETUP : m0n0wall 192.168.3.250 -- 192.168.3.248 (WAN)-Asterisk-(LAN) 192.168.4.248 -- LAN-switch But removing the NAT and connecting directly to the internet does not make that my Asterisk-server gets registered with the Asterisk-box of my IAX-provider... If Asterisk only binds IAX to the eth0-interface... I can maybe change eth0 to be my WAN-interface (IAX), and eth1 to be my LAN-interface (SIP)... ?? Greetingz, Jonas.>----- Oorspronkelijk bericht ----- >Van: Gavin Henry [mailto:gavin.henry at gmail.com]>Verzonden: maandag , mei 4, 2009 10:46 AM>Aan: 'Asterisk Users Mailing List - Non-Commercial Discussion'>Onderwerp: Re: [asterisk-users] Can someone help me with my IAX-registration> >Is your box on a public ip or via nat? If eth0 isn't the ip you set it >to bind on it will ignore it. > >I mean, is your * box on an internal address? >