<div dir="ltr"><div>This could be interesting.</div>The first step will to be to modify the doc to reflect the code behaviour.<div>Currently it is written that multiple lines with port= configures kamailio for listening on multiple ports</div><div>But it is not the case as you confirmed.</div><div><br></div><div>Additionnaly it does not work for me to configure with IP=0.0.0.0 with lines like this:</div><div><span style="color:rgb(80,0,80);font-size:13px">listen=tcp:</span><a href="http://0.0.0.0:5062/" rel="noreferrer" target="_blank" style="font-size:13px">0.0.0.0:5062</a><br></div><div>(4.3.3)</div><div>It shows "<span style="color:rgb(80,0,80);font-size:13px">Listening on.." but kamailio is not listening on any ports.</span></div><div><br></div><div>To listen on multiple ports without specifying the IP, I have only found that the config line with eth0 is working.</div><div>listen=tcp:eth0:5062</div><div><br></div><div>regards</div><div><br></div><div>thibault</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-03 11:26 GMT+01:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 02/11/15 15:25, Daniel Tryba wrote:<br>
> On Monday 02 November 2015 15:08:16 Thibault Gueslin wrote:<br>
>> Thank you for your answer.<br>
>><br>
>> However in my case (4.3.3 with tcp enabled), the 2 lines with port neither<br>
>> lines with 0.0.0.0 are working.<br>
> Well, if you want tcp you need to add that as listen proto. Making my answer<br>
> that listen... is equivalent to port untrue, since you have to add a lister<br>
> per protocol you need.<br>
><br>
> I have the following in a config (4.2.6):<br>
><br>
> # grep -e ^listen -e ^port kamailio.cfg<br>
> listen=udp:<a href="http://0.0.0.0:5060" rel="noreferrer" target="_blank">0.0.0.0:5060</a><br>
> listen=udp:<a href="http://0.0.0.0:5062" rel="noreferrer" target="_blank">0.0.0.0:5062</a><br>
> listen=tcp:<a href="http://0.0.0.0:5060" rel="noreferrer" target="_blank">0.0.0.0:5060</a><br>
> listen=tcp:<a href="http://0.0.0.0:5062" rel="noreferrer" target="_blank">0.0.0.0:5062</a><br>
><br>
> Starting this kamailio shows:<br>
> # kamailio<br>
> loading modules under config path: /usr/lib/x86_64-linux-gnu/kamailio/modules/<br>
> Listening on<br>
>              udp: <a href="http://0.0.0.0:5060" rel="noreferrer" target="_blank">0.0.0.0:5060</a><br>
>              udp: <a href="http://0.0.0.0:5062" rel="noreferrer" target="_blank">0.0.0.0:5062</a><br>
>              tcp: <a href="http://0.0.0.0:5060" rel="noreferrer" target="_blank">0.0.0.0:5060</a><br>
>              tcp: <a href="http://0.0.0.0:5062" rel="noreferrer" target="_blank">0.0.0.0:5062</a><br>
><br>
> netstat/lsof tell me kamailio is listening on al specified ports.<br>
><br>
</span>If people find it useful, I can extend the code so that port global<br>
parameter becomes a list instead of a single value. Although I didn't<br>
need it so far (even at some point I thought it is a list already, but<br>
code proved to be different), it looks like some people would like to<br>
have this option.<br>
<br>
Of course, that will break the current behaviour that setting the port<br>
second time will overwrite previous value, so the question would be if<br>
someone thinks that has to stay... anyone?<br>
<br>
Cheers,<br>
Daniel<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://twitter.com/#!/miconda" rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">http://www.linkedin.com/in/miconda</a><br>
Book: SIP Routing With Kamailio - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">http://www.asipto.com</a><br>
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - <a href="http://asipto.com/kat" rel="noreferrer" target="_blank">http://asipto.com/kat</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>