When you set bindaddr=0.0.0.0 Asterisk will not bind to any specific IP and the OS will choose the source IP of the packet. Let me repeat this: THE OS PICKS THE SOURCE IP.
If your OS routing tables are correct, then the packets will be sourced from the correct IP. -----Original Message----- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Dale Noll Sent: Thursday, October 13, 2011 12:47 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Binding asterisk to two static IPs On 10/13/2011 10:53 AM, ge...@riseup.net wrote: > > Just tested this, doesn't work. Asterisk ist still replying using the > main-address associated to the NIC. > In a previous posting, Jim Lucas proposed... --- snip --- I solved it by having two physical connections to my network. PBX E0 IP 192.168.100.36 NM 255.255.255.0 GW 192.168.100.1 E1 IP 192.168.101.254 NM 255.255.255.0 GW n/a --- snip --- This has two different subnets for eth0 and eth1. Do you have different IP subnets for eth0 and eth0.42? If you do, I do not know the reason for the problem. Perhaps you could post the output of: /sbin/ifconfig -a /bin/netstat -rn -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users