<div dir="ltr">yes. Thats will be great because in some system design it must use same port that listening for sendinf like in UDP for example for transcoding SIP over  WebSocket to SIP over TCP and masking registration behind thanscoder.<br><br>Like User sends registration, kamailio just Transcoding this request to TCP and then resend this registration packet to Asterisk.<br>With this example asteisk must originate all PACKETS to TCP port of kamailio but it tries to send it to port from wich request arrived and if use TCP it will not equal port that kamailio listening for TCP. </div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-08 13:17 GMT+03:00 Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Sep 08, 2016 at 11:16:29AM +0200, Federico Cabiddu wrote:<br>
> about this subject: linux kernel starting from 3.9 introduced SO_REUSEPORT<br>
> which allows reusing TCP sockets.<br>
> It could be interesting supporting this in Kamailio. I worked on a patch<br>
> for this, I can open a PR and start a discussion if you think it's worth.<br>
<br>
</span>Interesting, I read about SO_REUSEPORT a couple of weeks ago but it<br>
didn't dawn on me that it lets you have multiple sender sockets (by just<br>
not accept()-ing). IMHO it is usefull for setups that use IP based<br>
authentication with TCP instead of UDP (probably something the OP want<br>
to do).<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<wbr>_________________<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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</div></div></blockquote></div><br></div>