[Kamailio-Users] Quick RTPproxy question

Daniel-Constantin Mierla miconda at gmail.com
Sun Mar 21 16:05:24 CET 2010


Hello,

On 3/19/10 10:12 PM, Uriel Rozenbaum wrote:
> Hi guys,
>
> I have some easy doubt about nathelper functions using RTPProxy.
>
> I'm trying to bridge from an external IP to an internal IP.
> The start-line for rtpproxy is: rtpproxy -l PUBLIC_IP/PRIVATE_IP -s 
> udp:127.0.0.1:7999 <http://127.0.0.1:7999> -F
> It starts OK and I see it when kamailio starts.
>
> I'm going to use something like Daniel showed on some other mail:
>
> if(dst_ip==private)
>    force_rtp_proxy("ocfaei");
> else
>    force_rtp_proxy("ocfaei");
>
> if i have the invite from a public IP to someone in private on the 
> request I'll run
> force_rtp_proxy("ocfaei");
> then the reply will be from private to public... should I run 
> "force_rtp_proxy("ocfaei");"? or should it be the same?
>
I can see only same series of flags in all your calls. You need to use 
..ie in some cases. IIRC, for invite and reply you should use same 
sequence. Good part is that you have only two options :-) .

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
* http://www.asipto.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100321/c2164f70/attachment.htm>


More information about the sr-users mailing list