Sorry to have a conversation with myself here :)
I just tried removing both my "listen" directives and the server successfully bound to all my IP on all interfaces. There was one downside though. Within a few minutes of coming up I received these:
Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "208.93.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "75.150.XX.XX:5060" from group: <99> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "209.249.XX.XX:5060" from group: <4> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <1> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <3> is OFFLINE! Nov 29 15:14:16 atl-sipgateway1 /usr/local/sbin/kamailio[28285]: NOTICE:lcr:gw_set_state: trunk "216.82.XX.XX:5060" from group: <5> is OFFLINE!
I have "ping" set to 1 on all my LCR gateways... I was forced to go back to the listen=eth0:5060 directive to correct the problem.
Anyone have any ideas?
On Sun, Nov 29, 2009 at 3:00 PM, Geoffrey Mina geoffreymina@gmail.com wrote:
would this work if I wanted to listen on all interfaces and IPs?
listen=udp:*:5060
On Sun, Nov 29, 2009 at 2:57 PM, Geoffrey Mina geoffreymina@gmail.com wrote:
Hello, I have a Kamailio machine that has multiple IPs assigned to a single interface.
eth0 = 1.2.3.4 eth0:1 = 1.2.3.5
In my Kamailio config i have
listen=eth0:5060
And it doesn't appear to be binding to my second IP address. What is the proper way to tell the server to bind to all IPs on a single interface? I don't want to specify the IP directly for binding as I use the same config across 4 Kamailio servers.
listen=eth0:1:5060 (i think that's not correct)
Thanks, Geoff
p.s. I would do some testing, but this is a live machine and I don't want to bring it up and down.