Vieri
2009-Jan-09 08:22 UTC
[asterisk-users] iax2 bindaddress: how to reload so iax2 can bind to an alias IP
I'm trying to figure out how to reload iax2 (without breaking existing calls) so it can listen on a new IP address (like "ip addr add local ..."). This alias IP is added/removed by a custom process (script) for clustering purposes. The iax.conf file contains "bindaddr=0.0.0.0". I tried a "iax2 reload" (executed without errors or warnings) but I'm still not able to connect to the alias IP from another Asterisk server within the same LAN (no firewalls of any type in the middle). On the other Asterisk server I run a "iax2 show peers" and get "status UNREACHABLE" for the alias IP trunk (eg. 192.168.250.115 in the example below). However, if I specify a non-alias IP address on the other server's trunk settings then a "iax2 show peers" shows a "status OK" (eg. 192.168.250.111 in the example below). Just for your information, the IP settings on the server I'm trying to connect to are: # ip addr show eth1 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:1d:60:b0:25:10 brd ff:ff:ff:ff:ff:ff inet 192.168.250.111/24 brd 192.168.250.255 scope global eth1 inet 192.168.250.115/24 brd 192.168.250.255 scope global secondary eth1 inet6 fe80::21d:60ff:feb0:2510/64 scope link valid_lft forever preferred_lft forever This Asterisk server has version 1.2.30. The other "connecting" Asterisk server has version 1.4.21.2. Any ideas as to what I could try? Vieri
Josiah Bryan
2009-Jan-09 14:29 UTC
[asterisk-users] iax2 bindaddress: how to reload so iax2 can bind to an alias IP
Is this right after bringing online the alias IP? If so, you might try using arp-sk to broadcast an ARP packet to kick-start the IP lookup... http://sid.rstack.org/arp-sk/ -josiah Vieri wrote:> I'm trying to figure out how to reload iax2 (without breaking existing calls) so it can listen on a new IP address (like "ip addr add local ..."). This alias IP is added/removed by a custom process (script) for clustering purposes. > > The iax.conf file contains "bindaddr=0.0.0.0". > > I tried a "iax2 reload" (executed without errors or warnings) but I'm still not able to connect to the alias IP from another Asterisk server within the same LAN (no firewalls of any type in the middle). > > On the other Asterisk server I run a "iax2 show peers" and get "status UNREACHABLE" for the alias IP trunk (eg. 192.168.250.115 in the example below). > > However, if I specify a non-alias IP address on the other server's trunk settings then a "iax2 show peers" shows a "status OK" (eg. 192.168.250.111 in the example below). > > Just for your information, the IP settings on the server I'm trying to connect to are: > # ip addr show eth1 > 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000 > link/ether 00:1d:60:b0:25:10 brd ff:ff:ff:ff:ff:ff > inet 192.168.250.111/24 brd 192.168.250.255 scope global eth1 > inet 192.168.250.115/24 brd 192.168.250.255 scope global secondary eth1 > inet6 fe80::21d:60ff:feb0:2510/64 scope link > valid_lft forever preferred_lft forever > > This Asterisk server has version 1.2.30. > > The other "connecting" Asterisk server has version 1.4.21.2. > > Any ideas as to what I could try? > > Vieri > > > > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Possibly Parallel Threads
- Fw: iax2 bindaddress: how to reload so iax2 can bind to an alias IP
- SIP trunk between two Asterisk servers
- LAN IAX2 trunk bad audio quality vs. LAN SIP trunk good audio quality
- Passing variables between two DUNDi/IAX2 peers
- Cannot connect when using BindAddress