<p>Having configured the rtpproxy module based on the instructions (here: <a href="http://opensips.com.br/wiki/index.php?title=Oopensips_Nat_script_with_RTPPROXY_-_English">http://opensips.com.br/wiki/index.php?title=Oopensips_Nat_script_with_RTPPROXY_-_English</a>) with the addition of a unix socket for timeout notification</p>

<p>When a timeout occurs, the notification is sent to opensips which results a format error.</p>

<pre><code>Apr 17 13:51:50 sip2 rtpproxy[7194]: INFO:process_rtp:0lwTwepnRcMCQaFcHCR5Qn1YwTAO0jKx: session timeout
Apr 17 13:51:50 sip2 /usr/sbin/opensips[7359]: DBG:rtpproxy:timeout_listener_process: Timeout detected on call [1#012]
Apr 17 13:51:50 sip2 /usr/sbin/opensips[7359]: ERROR:rtpproxy:timeout_listener_process: Wrong formated message received from rtpproxy [1]
Apr 17 13:51:50 sip2 rtpproxy[7194]: INFO:remove_session:0lwTwepnRcMCQaFcHCR5Qn1YwTAO0jKx: RTP stats: 918 in from callee, 1428 in from caller, 2346 relayed, 0 dropped
Apr 17 13:51:50 sip2 rtpproxy[7194]: INFO:remove_session:0lwTwepnRcMCQaFcHCR5Qn1YwTAO0jKx: RTCP stats: 4 in from callee, 8 in from caller, 12 relayed, 0 dropped
Apr 17 13:51:50 sip2 rtpproxy[7194]: INFO:remove_session:0lwTwepnRcMCQaFcHCR5Qn1YwTAO0jKx: session on ports 12154/16986 is cleaned up
</code></pre>

<p>This has been tested with opensips 1.11.3 (LTS) and opensips 2.0rc1 each against rtpproxy 1.2 and rtpproxy 2.0.0, all built from source.</p>

<p>rtpproxy command line:</p>

<pre><code>rtpproxy -i -T 10 -s 'unix:/var/run/opensips/rtpproxy.sock' -n 'unix:/var/run/opensips/rtpproxy_notify.sock' -l &lt;server public ip&gt; -m 10000 -M 20000 -d 'DBUG' -u opensips:opensips
</code></pre>

<p>opensips config section:</p>

<pre><code>loadmodule "nathelper.so"
loadmodule "dialog.so"
loadmodule "rtpproxy.so"

modparam("nathelper", "natping_interval", 10)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "received_avp", "$avp(received_nh)")

modparam("rtpproxy", "rtpproxy_sock", "unix:/var/run/opensips/rtpproxy.sock")
modparam("nathelper","force_socket", "unix:/var/run/opensips/rtpproxy.sock")
modparam("rtpproxy", "rtpp_notify_socket", "unix:/var/run/opensips/rtpproxy_notify.sock")

</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/469">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciTiYcRg-KqlNdn3rQGC1VN9g33JPks5oAPq_gaJpZM4ECuCR.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/469"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>