Hi,<br><br>I have tried to sniff SIP packets, and maybe someone could check my results ?<br><a href="http://pastebin.com/6EY5VYeP">http://pastebin.com/6EY5VYeP</a><br><br>Now I am getting Too Many Hops (483)<br><br>77.YY.YY.YY = IP from which client trying to register<br>
77.XX.XX.XX = My Public IP<br>192.168.1.137 = Kamailio<br><br>Thanks for all!<br><br><br><br><div class="gmail_quote">2011/4/7 federico cabiddu <span dir="ltr">&lt;<a href="mailto:federico.cabiddu@gmail.com">federico.cabiddu@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
try to sniff the traffic on your Kamailio server to see if SIP packets<br>
are reaching the server or not and where, eventually, Kamailio is<br>
sending the replies.<br>
<br>
Regards,<br>
<br>
Federico<br>
<br>
2011/4/7 <a href="mailto:spamasbl@gmail.com">spamasbl@gmail.com</a> &lt;<a href="mailto:spamasbl@gmail.com">spamasbl@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Thank you, Klaus for your prompt reply.<br>
&gt;<br>
&gt; Now Kamailio listens on local IP (192.168.1.137)<br>
&gt; I&#39;ve added advertised_address line into my conf (I&#39;ve added here my public<br>
&gt; hostname)<br>
&gt; Also I have configured RTPProxy on port 22222, and now Kamailio starts<br>
&gt; without errors or<br>
&gt; warnings:<br>
&gt; Apr 7 04:58:37 sipbox kamailio[2465]: INFO: rtpproxy [rtpproxy.c:1403]: rtp<br>
&gt; proxy &lt;udp:<a href="http://127.0.0.1:22222" target="_blank">127.0.0.1:22222</a>&gt; found, support for it enabled<br>
&gt; But still the problem persists. I am not able to register with kamailio via<br>
&gt; public IP.<br>
&gt; DMZ is turned on, so I guess router should forward all ports to .137<br>
&gt; address.<br>
&gt; When trying to register, I am getting request timed out.<br>
&gt;<br>
&gt; Any ideas ?<br>
&gt; Thanks<br>
&gt; 2011/4/7 Klaus Darilion &lt;<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Am 07.04.2011 09:10, schrieb <a href="mailto:spamasbl@gmail.com">spamasbl@gmail.com</a>:<br>
&gt;&gt; &gt; Hello all,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I have installed latest Kamailio 3.1.3 on latest ubuntu server.<br>
&gt;&gt; &gt; Everything seems to be working well<br>
&gt;&gt; &gt; on my LAN. I can successfully register with local Kamailio IP address<br>
&gt;&gt; &gt; (192.168.1.137).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The issue is that I can not run Kamailio on my public IP:<br>
&gt;&gt; &gt; listen=udp:77.XX.XX.XX:5060<br>
&gt;&gt; &gt; listen=udp:<a href="http://192.168.1.137:5060" target="_blank">192.168.1.137:5060</a><br>
&gt;&gt; &gt; port=5060<br>
&gt;&gt;<br>
&gt;&gt; Kamailio can only listen to local IP addresses. The public IP address is<br>
&gt;&gt; not on your server, but on the public interface of the NAT Router. I<br>
&gt;&gt; guess the NAT router just does a forwarding to 192.168.1.137.<br>
&gt;&gt;<br>
&gt;&gt; Having a SIP proxy behind NAT will give you lot of headache. Anyway,<br>
&gt;&gt; listen only to the local IP address (192.168.1.137) and try<br>
&gt;&gt; advertised_address:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#advertised_address" target="_blank">http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#advertised_address</a><br>
&gt;&gt;<br>
&gt;&gt; klaus<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Kamailio runs behind Linksys WRT54GL router with latest Linksys firmware<br>
&gt;&gt; &gt; and DMZ is turned on (192.168.1.137).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Here is the error I am getting when trying to run kamailio with my<br>
&gt;&gt; &gt; public IP:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Apr 7 02:57:40 sipbox kamailio[1050]: ERROR: &lt;core&gt; [udp_server.c:400]:<br>
&gt;&gt; &gt; ERROR: udp_init: bind(7, 0x82cc6e4, 16) on 77.XX.XX.XX: Cannot assign<br>
&gt;&gt; &gt; requested address<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Do you have any idea what I&#39;m doing wrong ?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks !<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt; &gt; <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>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt; <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>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <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>
&gt;<br>
&gt;<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" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br>