<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-AU link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Hi Razvan,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>The call was initialled from CUCM (public side), which always does late offer, so there is no SDP body in the first INVITE. The SDP was created in the “200 OK” by the Callee (private side). Anyway we can parse this one?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>The function used is force_rtp_proxy() as I am still on v1.6.2. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Leon<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> users-bounces@lists.opensips.org [mailto:users-bounces@lists.opensips.org] <b>On Behalf Of </b>Razvan Crainea<br><b>Sent:</b> Friday, 1 April 2011 12:18 AM<br><b>To:</b> OpenSIPS users mailling list<br><b>Subject:</b> Re: [OpenSIPS-Users] inconsistence nathelper behavior<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Hello Leon,<br><br>As you can see, OpenSIPS is unable to parse the SDP body. Please make sure that your INVITE message has SDP body. If it does and you still have the problem, a capture of the initial INVITE would be very useful.<br>There are no debug messages of RTPProxy, only INFOs. Can you please tell me if the RTPProxy error comes from an rtpproxy_offer function or rtpproxy_answer?<br><br>Regards,<br>Razvan<br><br>On 03/30/2011 01:40 AM, Leon Li wrote: <o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Hi Razvan,</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>I’ve turned on DBUG, although not many output in syslog.</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:05 /usr/sbin/opensips[9336]: INVITE Received - RURI=<a href="sip:xxxxxxxxxxxxxxxxxxxxxxxxx">sip:xxxxxxxxxxxxxxxxxxxxxxxxx</a></span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:05 /usr/sbin/opensips[9336]: Alias Found, New RURI=xxxxxxxxxxxxxxxxxxxx</span><o:p></o:p></p><p class=MsoNormal><b><span style='color:#1F497D'>Mar 29 22:12:05 /usr/sbin/opensips[9336]: ERROR:nathelper:force_rtp_proxy: Unable to parse body</span></b><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:05 /usr/sbin/opensips[9336]: new branch at <a href="sip:xxxxxx@192.168.1.112:19463;user=phone">sip:xxxxxx@192.168.1.112:19463;user=phone</a></span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:05 /usr/sbin/opensips[9321]: incoming reply</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:05 /usr/sbin/opensips[9325]: incoming reply</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:07 /usr/sbin/opensips[9323]: incoming reply</span><o:p></o:p></p><p class=MsoNormal><b><span style='color:#1F497D'>Mar 29 22:12:07 /usr/sbin/opensips[9323]: ERROR:nathelper:force_rtp_proxy_body: incorrect port 0 in reply from rtp</span></b> proxy<o:p></o:p></p><p class=MsoNormal><b><span style='color:#1F497D'>Mar 29 22:12:07 rtpproxy[11501]: INFO:handle_command: lookup request failed: session 9332ee00-d9215935-5a7d0-22cf9eca@Public IP, tags 7d81dea5-6b91-4499-b7a2-77dff783a179-43141483;1/1219087299;1 not found</span></b><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:07 /usr/sbin/opensips[9323]: ACC: transaction answered: <a href="mailto:timestamp=1301436727;method=INVITE;from_tag=7d81dea5-6b91-4499-b7a2-77dff783a179-43141483;to_tag=1219087299;call_id=9332ee00-d9215935-5a7d0-22cf9eca@202.158.207.34;code=200;reason=OK">timestamp=1301436727;method=INVITE;from_tag=7d81dea5-6b91-4499-b7a2-77dff783a179-43141483;to_tag=1219087299;call_id=9332ee00-d9215935-5a7d0-22cf9eca@<span style='color:#1F497D'>xxxx</span>;code=200;reason=OK</a></span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:07 /usr/sbin/opensips[9336]: Method ACK from NATed UA - RURI=<a href="sip:xxxxxx;user=phone;nat=yes">sip:xxxxxx;user=phone;nat=yes</a> F=<a href="sip:xxxxxx">sip:xxxxxx</a> T=<a href="sip:xxxx@202.158.196.132">sip:xxxx@202.158.196.132</a> C=<null></span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:07 /usr/sbin/opensips[9336]: ACC: request acknowledged: <a href="mailto:timestamp=1301436727;method=ACK;from_tag=7d81dea5-6b91-4499-b7a2-77dff783a179-43141483;to_tag=1219087299;call_id=9332ee00-d9215935-5a7d0-22cf9eca@202.158.207.34;code=200;reason=OK">timestamp=1301436727;method=ACK;from_tag=7d81dea5-6b91-4499-b7a2-77dff783a179-43141483;to_tag=1219087299;call_id=9332ee00-d9215935-5a7d0-22cf9eca@<span style='color:#1F497D'>xxxx</span>4;code=200;reason=OK</a></span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:15 /usr/sbin/opensips[9323]: INFO:core:parse_first_line: empty or bad first line</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:15 /usr/sbin/opensips[9323]: INFO:core:parse_first_line: bad message</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:15 /usr/sbin/opensips[9323]: ERROR:core:parse_msg: message=<></span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:12:15 /usr/sbin/opensips[9323]: ERROR:core:receive_msg: parse_msg failed</span><o:p></o:p></p><p class=MsoNormal><b><span style='color:#1F497D'>Mar 29 22:12:34 rtpproxy[11501]: INFO:handle_command: delete request failed: session <a href="mailto:9332ee00-d9215935-5a7d0-22cf9eca@202.158.207.34">9332ee00-d9215935-5a7d0-22cf9eca@<span style='color:#1F497D'>xxxx</span></a>, tags 7d81dea5-6b91-4499-b7a2-77dff783a179-43141483/1219087299 not found</span></b><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>However, a successful call (i.e. from NATed to public) has much more output, like below.</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:22:23 rtpproxy[11548]: INFO:handle_command: new session <a href="mailto:825186551-19463-7@BJC.BGI.B.BBC">825186551-19463-7@BJC.BGI.B.BBC</a>, tag 1615321429;1 requested, type strong</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:22:23 rtpproxy[11548]: INFO:handle_command: new session on a port 64286 created, tag 1615321429;1</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:22:23 rtpproxy[11548]: INFO:handle_command: pre-filling caller's address with <b>Public IP of ADSL</b>:45020</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:22:23 rtpproxy[11548]: INFO:handle_command: new session <a href="mailto:825186551-19463-7@BJC.BGI.B.BBC">825186551-19463-7@BJC.BGI.B.BBC</a>, tag 1615321429;2 requested, type strong</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:22:23 rtpproxy[11548]: INFO:handle_command: new session on a port 37262 created, tag 1615321429;2</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Mar 29 22:22:23 rtpproxy[11548]: INFO:handle_command: pre-filling caller's address with <b>Public IP of ADSL</b>:23420</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>BTW, I am running opensips v1.6.2 and rtpproxy version </span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>/usr/bin/rtpproxy -v</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Basic version: 20040107</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Extension 20050322: Support for multiple RTP streams and MOH</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Extension 20060704: Support for extra parameter in the V command</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Extension 20071116: Support for RTP re-packetization</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Extension 20071218: Support for forking (copying) RTP stream</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Extension 20080403: Support for RTP statistics querying</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Extension 20081102: Support for setting codecs in the update/lookup command</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Extension 20081224: Support for session timeout notifications</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><div><p class=MsoNormal><span style='color:#1F497D'>Thanks,</span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'>Leon</span><o:p></o:p></p></div><p class=MsoNormal><span style='color:#1F497D'> </span><o:p></o:p></p><div><div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0cm 0cm 0cm;border-color:-moz-use-text-color -moz-use-text-color'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> <a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [<a href="mailto:users-bounces@lists.opensips.org">mailto:users-bounces@lists.opensips.org</a>] <b>On Behalf Of </b>Razvan Crainea<br><b>Sent:</b> Friday, 25 March 2011 8:25 PM<br><b>To:</b> <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br><b>Subject:</b> Re: [OpenSIPS-Users] inconsistence nathelper behavior</span><o:p></o:p></p></div></div><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Hi Leon,<br><br>You should run rtpproxy with '-d DBUG'. You can find the logs in /var/log/syslog.<br><br>Regards,<br>Razvan<br><br><o:p></o:p></p></div></body></html>