[OpenSER-Users] Problems with RTP-Proxy

Jerome Martin jmartin at longphone.fr
Thu Jan 10 19:19:19 CET 2008


Hi.

My remarks below.

On Thu, 2008-01-10 at 16:06 -0200, Jeferson Prevedello wrote:
> Hi ! 
> 
> I´m having problem to running RTPPROXY. Please, someone help me ?
> 
> Logs bellow:

Removed the logs from the answer as you IPs are in clear there.

> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> 
> [openser.cfg]
> 
> # ------------- !! Nathelper
> 
> modparam("registrar", "nat_flag", 6)
> modparam("nathelper", "natping_interval", 30) # Ping interval 30 s
> modparam("nathelper", "ping_nated_only", 1)   # Ping only clients behind NAT
> modparam("nathelper", "rtpproxy_sock", "unix:/var/run/rtpproxy.sock")   # Nathelper with RTPproxy
> modparam("nathelper", "rtpproxy_sock", "udp:xxx.xxx.xxx.xxx:8899")

I would first try to remove the unix-socket rtpproxy_sock declaration,
even though you log messages tend to let one think openser is using only
the second one (UDP).

> modparam("nathelper", "rtpproxy_disable_tout", 30)
> modparam("nathelper", "rtpproxy_tout", 2)
> modparam("nathelper", "rtpproxy_retr", 10)
> 
> # -------------
> 
> [root at sip2 run]# rpm -qa | grep rtp
> rtpproxy-0.3-1.fc5
> 
> 
> [root at sip2 run]# netstat -axep |grep rtpproxy
> unix  2      [ ACC ]     STREAM     LISTENING     8070094 19061/rtpproxy      /var/run/rtpproxy.sock


> 
> 
> [root at sip2 run]# ls -al rtpproxy.sock            
> srwxr-xr-x 1 root root 0 Jan 10 15:44 rtpproxy.sock
> 
> 
> [root at sip2 run]# ps -aux | grep rtp
if you want to use "-" options a la systemV, use "ps -eaf" to achieve
the same than the BSD-style "ps aux" :-)

> Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.6/FAQ
> root  19061  0.0  0.0   2532   344 ?  Ss   15:44   0:00 /usr/bin/rtpproxy
> root  19080  0.0  0.0   2532   344 ?  Ss   15:44   0:00 /usr/bin/rtpproxy -l xxx.xxx.xxx.xxx -s udp:xxx.xxx.xxx.xxx 8899

There is a missing ":" between the ip and the port. 
Try to use -l xxx.xxx.xxx.xxx -s udp:xxx.xxx.xxx.xxx:8899


Tell us if this helps.

Regards,
-- 
Jérôme Martin | LongPhone
Responsable Architecture Réseau
122, rue la Boetie | 75008 Paris
Tel :  +33 (0)1 56 26 28 44
Fax : +33 (0)1 56 26 28 45
Mail : jmartin at longphone.fr
Web : www.longphone.com <http://www.longphone.com>





More information about the sr-users mailing list