[Devel] Nathelper enhancement

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Mar 1 12:16:28 CET 2006


Hi,

this is a more logical solution : if no STUN or an incomplete STUN is 
detected, your proxy should fall-back an use a rely (rtpproxy or 
mediaproxy).

regards,
Bogdan

Tavis P wrote:

>I've encountered this same problem, however the only solution ( that i
>could come up with at least ) was to force the use of mediaproxy.
>
>If the client is using STUN i do not believe there is a way to determine
>what their internal IP address is
>
>
>Here is an example of what i'm doing from one of my scripts:
>----
># If the IP address of the Callee matches that of the Caller than force
>mediaproxy
># This is a workaround for the problem with hair-pinning NAT when using STUN
># If either side is behind NAT than we can just skip the checks
>if ( !(isflagset(2) or isflagset(3)) )
>{
># Store the destination IP into an AVP
>avp_printf("i:450", "$dd");
>
>if ( avp_check("i:450", "eq/$src_ip/g") )
>{
>log(1, "Forcing Mediaproxy Use Due to Possible Lack of NAT Hairpinning
>Support");
>
># Mark Session to Use Mediaproxy
>setflag(3);
>}
>}
>----
>
>
>S G wrote:
>  
>
>>Sure. An example would be when there are 2 stun enabled clients
>>calling from behind the same NAT. They both have the same external IP
>>assigned in the SDP due to STUN. Usually most NAT's dont allow hairpin
>>of media so the call fails. I'd like to take the local ip from the O
>>line or from the DB and load it in an AVP then rewrite the C line with
>>the local IP.
>>
>>Thanks,
>>Sumeet
>>
>>
>>    
>>
>>>From: Bogdan-Andrei Iancu <bogdan at voice-system.ro>
>>>To: S G <skg1010 at hotmail.com>
>>>CC: devel at openser.org
>>>Subject: Re: [Devel] Nathelper enhancement
>>>Date: Tue, 28 Feb 2006 11:28:12 +0200
>>>
>>>HI Summet,
>>>
>>>basically it can be done, but can you provide a real-case example of
>>>using this feature?
>>>
>>>regards,
>>>Bogdan
>>>
>>>S G wrote:
>>>
>>>      
>>>
>>>>Hi,
>>>>
>>>>This is a request for a nathelper enhancement. Can Nathelper be
>>>>enhanced to insert any user provided IP in the SDP C line through an
>>>>AVP? Currently fix_nated_sdp() can only rewirite with the source IP
>>>>of the message.
>>>>
>>>>Thanks,
>>>>Sumeet
>>>>
>>>>_________________________________________________________________
>>>>FREE pop-up blocking with the new MSN Toolbar – get it now!
>>>>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>>>>
>>>>
>>>>_______________________________________________
>>>>Devel mailing list
>>>>Devel at openser.org
>>>>http://openser.org/cgi-bin/mailman/listinfo/devel
>>>>
>>>>        
>>>>
>>_________________________________________________________________
>>Express yourself instantly with MSN Messenger! Download today - it's
>>FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>>
>>
>>_______________________________________________
>>Devel mailing list
>>Devel at openser.org
>>http://openser.org/cgi-bin/mailman/listinfo/devel
>>
>>    
>>
>>
>
>  
>




More information about the Devel mailing list