[asterisk-users] How to have Asterisk respond from the IP addressused for registration

Mike list at virtutel.ca
Thu May 27 15:19:48 CDT 2010


I should have mentionned this is already done.  I can see that is a SIP
response when trying 192.168.1.3, but the phones fails to register.  I
suspect a NAT/firewall issue because packets are leaving for 192.168.1.3,
but coming back from 192.168.1.2.

 

Mike

 

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Danny Nicholas
Sent: Thursday, May 27, 2010 16:15
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] How to have Asterisk respond from the IP
addressused for registration

 

2 things to try - (1) set bindaddr in sip.conf to 0.0.0.0 instead of
192.168.1.2  - in theory this will let * use both cards (2) start second
instance of asterisk bound to 192.168.1.3 - probably the approach with the
better chance of success.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mike
Sent: Thursday, May 27, 2010 2:38 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: [asterisk-users] How to have Asterisk respond from the IP
addressused for registration

 

Hi,

 

I have a test server with 2 NICs, each with it own IP address. Let`s say
192.168.1.2 and 192.168.1.3.  I would like some phones to register by using
192.168.1.2 and some by using 192.168.1.3 as the address.

 

Since the default IP is 192.168.1.2, that is the only working address. Every
phone connecting to 192.168.1.3 fails to register, presumably because
Asterisk answers back from 192.168.1.2 and the phone doesn't recognize this
as the correct SIP server.

 

I am using 1.4.31.  Is there any way to have Asterisk answer from the IP
address used instead of using the default one?

 

Regards,

 

Mike

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100527/ce8b5b77/attachment.htm 


More information about the asterisk-users mailing list