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

Jeff LaCoursiere jeff at jeff.net
Thu May 27 18:09:29 CDT 2010



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



More information about the asterisk-users mailing list