[Serusers] Help!!!! I Need it, PLEASE!

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Wed Sep 29 13:21:54 CEST 2004


On Sep 28, 2004 at 11:14, armando <armandom at ctitelnet.com> wrote:
>  Hi folks, 
> 
> I posted this message yersterday and nobody answer to me.... I need help in
> this matter...please.... Help me guys!!!
>  
> I got my rtpproxy working now, and the calls are comming thought it...
> but just if i have a real ip in my box.....but now I need to put my box
> behind a NAT.... I have an static ip mapped to an real ip in the nat router.
> . example: internal 10.1.90.100 --> outside 200.81.134.66 ...and now i need
> to call force_rtp_proxy but with the options to insert the outside address
> in the sdp and not the internal one....
> I have tried several times with diferents values in the parameteres...but I
> can't get the result i want... i can not understand how i need to call
> force_rtp_proxy("f","200.81.134.66") i tried this but i didn't work....

Yes, it seems newer rtp proxy versions always return the ip and
nathelper will use it over the one in the force_rtp_proxy command.
Try to modify nathelper sources:
change nathelper.c line 1452 from:
newip.s = (argc < 2) ? str2 : argv[1];
to 
newip.s = str2;

recompile and try again.

Note that this is a quick hack, and after this nathelper will always use 
 the address specified in force_rtp_proxy or the address of the sip
 proxy (which might not be what you want in other cases).


Andrei




More information about the sr-users mailing list