<DIV>
<DIV>I changed the line modparam("nathelper", "rtpproxy_sock", "/var/run/rtpproxy.sock") to modparam("nathelper", "rtpproxy_sock", "udp:localhost:22222") and started the rtpproxy as ./rtpproxy -s udp from the relevant directory and this resulted in a series of "rtpp_command: no response from rtpproxy" and rtpproxy temporarily disabled" errors. If I return to the original modparam and start it as ./rtpproxy then it works but like I said when the private client rings the public client, I get "ERROR: send_rtpp_command: cant read reply from a RTP Proxy".</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any further ideas? Has anyone on the mailing list experienced this? I am using the script given in the onsip getting started doc for 0.9.0. but am using ser 0.8.14.</DIV>
<DIV>&nbsp;</DIV>
<DIV>BR,</DIV>
<DIV>Vivienne</DIV>
<DIV><BR><BR><B><I>"Greger V. Teigre" &lt;greger@teigre.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><XMETA name="GENERATOR" content="MSHTML 6.00.2900.2604">
<STYLE></STYLE>

<DIV>See inline.</DIV>
<DIV><BR>&gt; Thank you for that Greger. I have altered my script so that it<BR>&gt; exactly mimics the one in the onsip document besides the has_totag<BR>&gt; and fix_nated register. All is good when I ring from a private phone<BR>&gt; to a public phone i.e. the audio is very clear and the following<BR>&gt; messages are in /var/log.&nbsp;&nbsp;&nbsp; <BR>&gt; <BR>&gt; ERROR: extract_body: message body has length zero<BR>&gt; ERROR: force_rtp_proxy2: cant extract body from the message.<BR>&gt; <BR>&gt; I assume this is because of the 200 OK to a register message where<BR>&gt; theres no sdp?? Is this correct?&nbsp;<BR></DIV>
<DIV>That's correct.&nbsp; You will find code in the example configs where we test for an empty body before calling force_rtp_proxy.</DIV>
<DIV><BR>&gt; However when I try to phone from public into private I get:<BR>&gt; <BR>&gt; ERROR: send_rtpp_command: cant read reply from a RTP Proxy.<BR>&gt; <BR>&gt; I find this confusing because I know the rtpproxy is working.<BR></DIV>
<DIV>This means that rtpproxy is not responding to a particular message. I have heard some people have had problems with the socket based communication. I only use UDP. This is what you do to set up udp (22222 is default port):</DIV>
<DIV>modparam("nathelper", "rtpproxy_sock", "udp:localhost:22222")</DIV>
<DIV>rtpproxy must be started with -s udp:*</DIV>
<DIV>g-)</DIV>
<DIV><BR>&gt; BR<BR>&gt; Vivienne.<BR>&gt; <BR>&gt; "Greger V. Teigre" &lt;greger@teigre.com&gt; wrote:<BR>&gt; Yes, you can use fix_nated_contact instead. It is not entirely<BR>&gt; RFC-compliant, but that's what you have in 0.8.14. <BR>&gt; The has_totag() only tests to see if the INVITE has a To header,<BR>&gt; which means that it is in-dialog and thus is a re-INVITE.&nbsp; An INVITE<BR>&gt; will normally not have loose routing unless you have another SIP<BR>&gt; proxy forwarding an INVITE to you (in which case you should assume<BR>&gt; that the other proxy handles NAT and thus not trigger NAT-related<BR>&gt; code).&nbsp; You can safely remove the has_totag() if you use<BR>&gt; force_rtp_proxy("l")&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; g-)<BR>&gt; <BR>&gt; ---- Original Message ----<BR>&gt; From: Vivienne Curran<BR>&gt; To: Greger V. Teigre ; serusers@lists.iptel.org<BR>&gt; Sent: Tuesday, April 05, 2005 02:25 PM<BR>&gt; Subject: Re: [Serusers] Contact Header and SDP not
 rewritten<BR>&gt; <BR>&gt;&gt; Greger,<BR>&gt;&gt; <BR>&gt;&gt; Since fix_nated_register does not exist with 0.8.14, will<BR>&gt;&gt; fix_nated_contact do instead? Also if I am leaving out the<BR>&gt;&gt; has_totag() at the start of the script, will this greatly effect its<BR>&gt;&gt; functionality?<BR>&gt;&gt; <BR>&gt;&gt; Thank you,<BR>&gt;&gt; Vivienne</DIV></BLOCKQUOTE></DIV><p>Send instant messages to your online friends http://uk.messenger.yahoo.com