[OpenSIPS-Users] RTP Proxy module.

Sebastian Sastre sebastian at brainiacideas.com
Wed Jul 25 19:26:09 CEST 2012


Hello,

>
> Im trying to configure RTP proxy for the following scenario.
>
> I have opensips in the border server between my public ipaddress and my
> internal. So that ETH0 has public IP and eth1 has private.
>
> I set mhomed=1 so that packets are forwarded correctly and the call does
> connect.
>
> First of all, is this possible with rtpproxy and opensips? I know
> Mediaproxy is not able to bind like that.
>
> The RTP proxy command I'm using is
>
> rtpproxy -f -l PUBLIC-IP/192.168.3.18 -s udp:127.0.0.1:12221 -F
>
> Opensips Config looks like this.
>
>                 if (is_method("INVITE")){
>                         ##xlog("-> Route(0) - New Incomming Invite request
>  to [$ru]\n");
>                         if (check_source_address("1")) {
>                                 record_route();
>                                 create_dialog();
>
>                                 if (load_balance("1","channels")){
>
>                                         # dst URI points to the new
> destination
>                                         #ahora le sacamos el prefijo
>
> dp_translate("1","$ruri.user/$ruri.user");
>
>                                         #xlog("-> Route(0) - $ruri.user
> going to call to $du\n");
>                                         $ru = "sip:" + $rU + "@" + $dd +
> ":" + $dp;
>                                         $avp(dst) = $dd;
>
>                                         engage_rtp_proxy("ie");
>                                         route(1);
>                                 }
>                                 else{
>                                       xlog("-> Route(0) - Did not find
> available GWs\n");
>                                         sl_send_reply("500", "All is
> full");
>                                 }
>                         }
>                         else{
>                               xlog("-> IP not in address table \n");
>                                 sl_send_reply("503","IP not in address
> table");
>                         }
>                 }
>
> When is tart open sips, it connects to RTP Proxy with no problems.
>
> When the invite is sent out to the internal ip it correctly sets c= on the
> body but i don't see rtpproxy doing anything nor i get audio in any
> direction.
>
> rtpproxy leaves no logs, or errors or anything.
>
> am i doing something wrong here?
>
> thanks
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120725/118cdb5c/attachment.htm>


More information about the Users mailing list