Mike
2010-May-27 19:38 UTC
[asterisk-users] How to have Asterisk respond from the IP address used 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/2042ee84/attachment.htm
Danny Nicholas
2010-May-27 20:15 UTC
[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/eff923c9/attachment.htm
Jeff LaCoursiere
2010-May-27 23:09 UTC
[asterisk-users] How to have Asterisk respond from the IP address used for registration
On Thu, 27 May 2010, Mike wrote:> 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? >I think you should take a step back and ask yourself why you are trying to do this in the first place. Presumably you have both of these NIC's plugged into the same logical LAN or you will have even more difficulties with routing later. What problem are you actually trying to solve? j