<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Most probably the r-uri is without port, being considered 5060, but
then, if kamailio is not listening on port 5060, it will not
consider domains/ips without port as being for it, so it will try to
forward it to port 5060.<br>
<br>
You can eventually listen on both port 5060 and another higher port.
Or add alias=ip:5060 parameters.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 12/12/15 19:40, Javohir Maxmarajabov
wrote:<br>
</div>
<blockquote
cite="mid:CABBSJG6drVoeHRzCdEoK9m456KpZ0gso13RZ2Nq0xLorwXB4zg@mail.gmail.com"
type="cite">
<div dir="ltr">Hello fellow developers...
<div><br>
</div>
<div>We have been testing Kamailio for a week and it is working
great...</div>
<div>But some of the our friends reported that they can't
connect to our server using their mobile Internet... and it
seems default SIP port is blocked by Service Provider...</div>
<div><br>
</div>
<div>So we decided to change ports...</div>
<div>I opened kamailio.cfg and added these lines:</div>
<div>
<div>listen=tcp:_PUBLIC_IP_:32850</div>
<div>listen=udp:_PUBLIC_IP_:32850</div>
<div>listen=tls:_PUBLIC_IP_:32851</div>
<div>listen=tcp:<a moz-do-not-send="true"
href="http://127.0.0.1:32850">127.0.0.1:32850</a></div>
<div>listen=udp:<a moz-do-not-send="true"
href="http://127.0.0.1:32850">127.0.0.1:32850</a></div>
<div>listen=tls:<a moz-do-not-send="true"
href="http://127.0.0.1:32851">127.0.0.1:32851</a></div>
<div>listen=tcp:<a moz-do-not-send="true"
href="http://10.19.0.5:32850">10.19.0.5:32850</a></div>
<div>listen=udp:<a moz-do-not-send="true"
href="http://10.19.0.5:32850">10.19.0.5:32850</a></div>
<div>listen=tls:<a moz-do-not-send="true"
href="http://10.19.0.5:32851">10.19.0.5:32851</a></div>
<div><br>
</div>
<div>
<div>port=32850</div>
<div>port=32851</div>
</div>
<div><br>
</div>
<div>Now clients throwing an error "<span
style="color:rgb(34,36,38);font-family:Arial,'Helvetica
Neue',Helvetica,sans-serif;font-size:15px;line-height:19.5px">403
Not relaying"...</span></div>
<div><font color="#222426" face="Arial, Helvetica Neue,
Helvetica, sans-serif"><span
style="font-size:15px;line-height:19.5px">I tried to
enable debugging to see cfgtrace... no errors detected</span></font></div>
<div>But when I comment out lines above, (with default cfg)
everything works fine</div>
<div><br>
</div>
<div><span
style="color:rgb(34,36,38);font-family:Arial,'Helvetica
Neue',Helvetica,sans-serif;font-size:15px;line-height:19.5px">Where
and What am I doing wrong?</span><br>
</div>
<div><span
style="color:rgb(34,36,38);font-family:Arial,'Helvetica
Neue',Helvetica,sans-serif;font-size:15px;line-height:19.5px">Thanks
in advance :)</span></div>
<div class="gmail_signature">
<div dir="ltr">
<div style="font-size:12.8px">Javokhir M.M.</div>
<div style="font-size:12.8px"><span
style="font-size:12.8px">________________________________________________</span><br>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">Disclaimer: The information
in this e-mail is confidential. If you are not addressed
recipient then please return and delete this e-mail from
your system. Unauthorised use of or disclose the
contents of this e-mail may be unlawful.</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://miconda.eu">http://miconda.eu</a></pre>
</body>
</html>