[OpenSIPS-Devel] [opensips] Message format error for rtpproxy timeout notification (#469)

Hamid notifications at github.com
Fri Apr 17 14:57:35 CEST 2015


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

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

```
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
```
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.

rtpproxy command line:

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

opensips config section:
```
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")

```

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/469
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150417/531558ae/attachment.htm>


More information about the Devel mailing list