<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=GB2312" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello,<br>
    <br>
    apart of the email with logs, or private data that was required,
    please continue the discussion on public mailing list.<br>
    <br>
    I need some time to check the logs, the first inconvenience is the
    rar archive, a zip or tgz is much better -- not a fan of installing
    binaries from unknown companies on mac os x, going to get unrar from
    macports. Then solaris is not an OS i have at hand nor use
    frequently, so need to read about. It is also why using mailing list
    keeps you in touch with others that can help.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    On 8/18/10 7:04 PM, KevinJin wrote:
    <blockquote cite="mid:SNT110-W285EEEE5E4F41F3B27B006E69D0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:΢ÈíÑźÚ
}
--></style>
      Hi Daniel,<br>
      &nbsp;<br>
      Does the logs have any hint for what's&nbsp;cause of the issue? I
      didn't include the user list in the previous email since logs
      have&nbsp;the actual&nbsp;IP info.<br>
      &nbsp;<br>
      Thanks in advance!<br>
      &nbsp;<br>
      Best Regard<br>
      Kevin<br>
      &nbsp;<br>
      <hr id="stopSpelling">
      From: <a class="moz-txt-link-abbreviated" href="mailto:kevin.jzh@hotmail.com">kevin.jzh@hotmail.com</a><br>
      To: <a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
      Subject: RE: [SR-Users] Kamailio 3.0 cann't access the RTPProxy<br>
      Date: Tue, 17 Aug 2010 18:51:02 +0800<br>
      <br>
      <meta name="Generator" content="Microsoft SafeHTML">
      <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:΢ÈíÑźÚ;}

</style><br>
      &nbsp;Hi Daniel,<br>
      &nbsp;<br>
      Attached are the two kamailio logs, <br>
      unix_socket_log&nbsp;&nbsp;&nbsp;&nbsp; --- run rtp proxy wth -s
      unix:/tmp/rtpproxy.sock<br>
      udp_rtpproxy_log&nbsp;&nbsp; --- run rtp proxy with -s udp:*:7722<br>
      &nbsp;<br>
      Please help to check what's wrong with it.<br>
      &nbsp;<br>
      Thanks,<br>
      Kevin<br>
      <hr id="ecxstopSpelling">
      Date: Tue, 17 Aug 2010 11:29:46 +0200<br>
      From: <a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
      To: <a class="moz-txt-link-abbreviated" href="mailto:kevin.jzh@hotmail.com">kevin.jzh@hotmail.com</a><br>
      CC: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
      Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy<br>
      <br>
      Hello,<br>
      <br>
      please send full log at startup, your snippets include just few
      lines per process, being mixed from different processes.<br>
      <br>
      Cheers,<br>
      Daniel<br>
      <br>
      <br>
      On 8/14/10 3:54 AM, KevinJin wrote:
      <blockquote cite="mid:SNT110-W20E7A24FA08314F3E5D220E6990@phx.gbl">
        <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:΢ÈíÑźÚ;}
</style>Hello,<br>
        &nbsp;<br>
        <hr id="ecxstopSpelling">
        Date: Thu, 12 Aug 2010 22:16:18 +0200<br>
        From: <a moz-do-not-send="true"
          class="ecxmoz-txt-link-abbreviated"
          href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
        To: <a moz-do-not-send="true"
          class="ecxmoz-txt-link-abbreviated"
          href="mailto:kevin.jzh@hotmail.com">kevin.jzh@hotmail.com</a><br>
        CC: <a moz-do-not-send="true"
          class="ecxmoz-txt-link-abbreviated"
          href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
        Subject: Re: [SR-Users] Kamailio 3.0 cann't access the RTPProxy<br>
        <br>
        Hello,<br>
        <br>
        On 8/12/10 8:34 PM, KevinJin wrote:
        <blockquote
          cite="mid:SNT110-W46A39E3EA42A726790A067E6970@phx.gbl">
          <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:΢ÈíÑźÚ;}
</style>Hello,<br>
          &nbsp;<br>
          <hr id="ecxstopSpelling">
          Date: Thu, 12 Aug 2010 18:46:19 +0200<br>
          From: <a moz-do-not-send="true"
            class="ecxmoz-txt-link-abbreviated"
            href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
          To: <a moz-do-not-send="true"
            class="ecxmoz-txt-link-abbreviated"
            href="mailto:kevin.jzh@hotmail.com">kevin.jzh@hotmail.com</a><br>
          CC: <a moz-do-not-send="true"
            class="ecxmoz-txt-link-abbreviated"
            href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
          Subject: Re: [SR-Users] Kamailio 3.0 cann't access the
          RTPProxy<br>
          <br>
          Hello,<br>
          <br>
          On 8/12/10 4:47 PM, KevinJin wrote:
          <blockquote
            cite="mid:SNT110-W304E04ABB14FFBFB478657E6970@phx.gbl">
            <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:΢ÈíÑźÚ;}
</style>Hi Daniel,<br>
            &nbsp;<br>
            What does the log below means? Does it mean nathelper has
            issue to send the request to RTP proxy first or nathelper
            doesn't receive a response after sending a request to the
            rtp proxy?<br>
            <font color="#ff0000">0(27429) ERROR: nathelper
              [nathelper.c:2457]: can't send command to a RTP proxy<br>
            </font></blockquote>
          this error is printed when write to socket fails. Do you have
          any firewall running on the system? Is the user under which
          kamailio runs allowed to write to sockets?
          <blockquote style="margin-right: 0px;" dir="ltr"><br>
            <font color="#0070c0">There's no firewall on the system, and
              I run the kamailio as root, </font><br>
            <font color="#0070c0">&nbsp;root 26310&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp; 0 02:24:19
              ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0:00 /usr/local/kamailio-3.0.2/sbin/kamailio
              -f /usr/local/kamailio-3.0.2/etc/kamail</font><br>
            <br>
            You can edit module_k/nathelper/nathelper.c and replace the
            line 2457 with:<br>
            <br>
            LM_ERR("can't send command to a RTP proxy (%s/%d)\n",
            strerror(errno), errno);<br>
            <br>
            Recompile and reinstall. Hopefully will get more hints about
            what happens.<br>
          </blockquote>
          <br>
          &nbsp;Here is the error message after the change: <br>
          <font color="#0070c0">2(26312) ERROR: nathelper
            [nathelper.c:2457]: can't send command to a RTP proxy<font
              color="#ff0000">(Invalid argument/22)</font><br>
            &nbsp;2(26312) ERROR: nathelper [nathelper.c:2492]: proxy
            &lt;udp:210.13.124.15:7722&gt; does not respond, disable it<br>
            &nbsp;2(26312) ERROR: nathelper [nathelper.c:3144]: no available
            proxies</font><br>
          what could be the cause?<br>
        </blockquote>
        hmm, invalid argurment ... try with this line:<br>
        <br>
        LM_ERR("can't send command to a RTP proxy (%s/%d) [sock %d (%d),
        vcnt %d]\n",<br>
        &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strerror(errno), errno,
        rtpp_socks[node-&gt;idx], node-&gt;idx, vcnt);<br>
        <br>
        maybe will give some hints about which value is invalid.<br>
        &nbsp;<br>
        <font color="#0070c0">&nbsp;Here's the log after the change:</font><br>
        <font color="#0070c0">4(14415) ERROR: nathelper
          [nathelper.c:2457]: can't send command to a RTP proxy (Invalid
          argument/22) [sock 7 (0), vcnt 18]<br>
          &nbsp;4(14415) ERROR: nathelper [nathelper.c:2492]: proxy
          &lt;udp:210.13.x.y:7722&gt; does not respond, disable it<br>
          &nbsp;4(14415) ERROR: nathelper [nathelper.c:3144]: no available
          proxies</font><br>
        <br>
        <br>
        Can you try as well with an unix file socket:<br>
        <br>
        modparam("nathelper", "rtpproxy_sock",
        "unix:/tmp/rtpproxy.sock")<br>
        <br>
        then start rtpproxy with -s unix:/tmp/rtpproxy.sock<br>
        <br>
        &nbsp;<br>
        <font color="#0070c0">&nbsp;4(17530) INFO: nathelper
          [nathelper.c:2369]: rtp proxy &lt;unix:/tmp/rtpproxy.sock&gt;
          found, support for it re-enabled<br>
          &nbsp;3(17529) ERROR: nathelper [nathelper.c:2429]: can't send
          command to a RTP proxy<br>
          &nbsp;3(17529) ERROR: nathelper [nathelper.c:2492]: proxy
          &lt;unix:/tmp/rtpproxy.sock&gt; does not respond, disable it<br>
          &nbsp;3(17529) ERROR: nathelper [nathelper.c:3144]: no available
          proxies</font><br>
        &nbsp;<br>
        <font color="#0070c0">Thanks,</font><br>
        <font color="#0070c0">Kevin</font><br>
        <br>
        I have no solaris (sparc) to try myself...<br>
        <br>
        Cheers,<br>
        Daniel<br>
        <br>
        <br>
        <blockquote
          cite="mid:SNT110-W46A39E3EA42A726790A067E6970@phx.gbl">&nbsp;<br>
          Test env:<br>
          UA1 (Behind NAT)&nbsp;&nbsp; --------&gt; Kamailio &amp; RTPproxy
          (Public IP) ---------&gt;UA2 (Public IP)<br>
          &nbsp;<br>
          Thanks,<br>
          Kevin<br>
          Cheers,<br>
          Daniel<br>
          <br>
          <br>
          <br>
          <blockquote
            cite="mid:SNT110-W304E04ABB14FFBFB478657E6970@phx.gbl"><font
              color="#ff0000">0(27429) ERROR: nathelper
              [nathelper.c:2492]: proxy &lt;udp:210.13.124.15:7722&gt;
              does not respond, disable it<br>
            </font><br>
            <font color="#ff0000"><font color="#000000">There's no
                problem for the resource(CPU,&nbsp;mem etc.)&nbsp;on the server,
                the load is very low.</font></font><br>
            &nbsp;<br>
            <font color="#ff0000"><font color="#000000">Thanks in
                advance!</font><br>
            </font>----------<br>
            &nbsp;0(27429) DEBUG: nathelper [nhelpr_funcs.c:148]: type
            &lt;application/sdp&gt; found valid<br>
            &nbsp;0(27429) ERROR: nathelper [nathelper.c:3144]: no available
            proxies<br>
            &nbsp;0(27429) ERROR: nathelper [nathelper.c:2627]: no available
            proxies<br>
            &nbsp;0(27429) DEBUG: nathelper [nhelpr_funcs.c:148]: type
            &lt;application/sdp&gt; found valid<br>
            &nbsp;0(27429) INFO: nathelper [nathelper.c:2369]: rtp proxy
            &lt;udp:210.13.124.15:7722&gt; found, support for it
            re-enabled<br>
            &nbsp;0(27429) DEBUG: nathelper [nathelper.c:3196]: proxy reply:
            42040 210.13.124.14<br>
            &nbsp;0(27429) DEBUG: nathelper [nhelpr_funcs.c:148]: type
            &lt;application/sdp&gt; found valid<br>
            &nbsp;0(27429) ERROR: nathelper [nathelper.c:2457]: can't send
            command to a RTP proxy<br>
            &nbsp;0(27429) ERROR: nathelper [nathelper.c:2492]: proxy
            &lt;udp:210.13.124.15:7722&gt; does not respond, disable it<br>
            &nbsp;0(27429) ERROR: nathelper [nathelper.c:3144]: no available
            proxies<br>
            &nbsp;0(27429) ERROR: nathelper [nathelper.c:2627]: no available
            proxies<br>
            &nbsp;<br>
            Thanks,<br>
            Kevin<br>
            <hr id="ecxstopSpelling">
            <pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" 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>
</pre>
          </blockquote>
          <br>
          <pre class="ecxmoz-signature">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a>
</pre>
        </blockquote>
        <br>
        <pre class="ecxmoz-signature">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a>
</pre>
      </blockquote>
      <br>
      <pre class="ecxmoz-signature">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a>
</pre>
  </body>
</html>