<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 29, 2014 at 12:06 AM, aawaise <span dir="ltr"><<a href="mailto:owaisulhaq@hotmail.com" target="_blank">owaisulhaq@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All certificates and keys have been made and updated.<br>
Can we make kamailio server to listen to two ports, i.e 5061 and 5062<br>
simultaneously ??<br>
Like in a scenario where some users connect to 5061 and some at 5062.<br></blockquote><div><br></div><div>Yes. Simply add multiple listen statements:<br><br></div><div>listen=tls:<a href="http://192.0.2.1:5061">192.0.2.1:5061</a><br>
</div><div>listen=tls:<a href="http://192.0.2.1:5062">192.0.2.1:5062</a><br><br></div><div>The Kamailio daemon will treat all received packets the same, though, unless you do something explicit. You can use the variable $Rp to look at which port the request came in on.<br>
<br>Corey<br> <br></div></div></div></div>