<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 05 Jun 2014, at 08:45, Konstantin M. <<a href="mailto:evilzluk@gmail.com">evilzluk@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div><div><div>I don't think it is a big problem.<br></div></div></div></div></div></div></div></blockquote>The problem is mainly in the parser of the listen= configuration option I believe.</div><div><br></div><div>/O<br><blockquote type="cite"><div dir="ltr"><div><div><div><div><div>See my tests:<br></div>root@milana:~# ip a l<br>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN<br>

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br>    inet <a href="http://127.0.0.1/8">127.0.0.1/8</a> scope host lo<br>2: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000<br>

    link/ether 00:50:fc:98:d7:8b brd ff:ff:ff:ff:ff:ff<br>    inet <a href="http://192.168.254.254/24">192.168.254.254/24</a> brd 192.168.254.255 scope global eth1<br>    inet <a href="http://1.2.3.4/0">1.2.3.4/0</a> brd 255.255.255.255 scope global eth1:0<br>

    inet <a href="http://1.2.3.5/0">1.2.3.5/0</a> brd 255.255.255.255 scope global secondary eth1:2<br>    inet <a href="http://1.2.3.6/0">1.2.3.6/0</a> brd 255.255.255.255 scope global secondary eth1:test<br>    inet <a href="http://1.2.3.7/0">1.2.3.7/0</a> brd 255.255.255.255 scope global secondary eth1:4:4<br>

3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000<br>    link/ether a0:00:00:05:dd:42 brd ff:ff:ff:ff:ff:ff<br>    inet <a href="http://10.10.1.201/20">10.10.1.201/20</a> brd 10.10.15.255 scope global eth2<br>

<br><br></div>root@milana:~# gcc -g -Wall -o getifaddrs getifaddrs.c<br><br></div>root@milana:~# ./getifaddrs<br>Interface Name   :  lo<br>Address / Mask   :  127.0.0.1 / 255.0.0.0<br><br>Interface Name   :  eth1<br>Address / Mask   :  192.168.254.254 / 255.255.255.0<br>

<br>Interface Name   :  eth1:0<br>Address / Mask   :  1.2.3.4 / 0.0.0.0<br><br>Interface Name   :  eth1:2<br>Address / Mask   :  1.2.3.5 / 0.0.0.0<br><br>Interface Name   :  eth1:test<br>Address / Mask   :  1.2.3.6 / 0.0.0.0<br>

<br>Interface Name   :  eth1:4:4<br>Address / Mask   :  1.2.3.7 / 0.0.0.0<br><br>Interface Name   :  eth2<br>Address / Mask   :  10.10.1.201 / 255.255.240.0<br></div><br><br></div>Test code attached.<br><br><div>

<div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-05 9:31 GMT+04:00 Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
On 04 Jun 2014, at 22:38, Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br>
<br>
> On 06/04/2014 04:37 PM, Olle E. Johansson wrote:<br>
>><br>
>> On 04 Jun 2014, at 22:35, Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>> wrote:<br>
>><br>
>>> Hello Olle,<br>
>>><br>
>>> Couldn't you get around this by just specifying the IP address of the interface? e.g.<br>
>>><br>
>>>   listen=udp:xxx.xxx.xxx.xxx:5060<br>
>> Not in this configuration, but with some tweaking I may. But it would simplify<br>
>> a lot if I just could point to the interface.<br>
><br>
> I run into this problem a lot, too, with eth0:x subinterfaces. But specifying the address is the only way I know of to solve it at present.<br>
<br>
</div>I guess it's about time to file a bug report :-)<br>
<span class="HOEnZb"><font color="#888888"><br>
/O<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>
<span><getifaddrs.c></span>_______________________________________________<br>sr-dev mailing list<br><a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev<br></blockquote></div><br></body></html>