Thanks that worked. Anil
-----Original Message----- From: Alex Balashov [mailto:[email protected]] Sent: Friday, June 12, 2009 5:13 PM To: Anil M Pannikode (hotmail) Cc: [email protected] Subject: Re: [OpenSIPS-Users] fix_nated_sdp fix_nated_sdp() operates on any request or reply containing an SDP payload. If you wish to apply it to a 200 OK with SDP payload, you need to call it from a reply route that catches 200 OKs; 200 OKs are replies, not requests. For example: route { ... # Relay INVITE. t_on_reply("1"); if(!t_relay()) sl_reply_error(); exit; } onreply_route[1] { if(t_check_status("200")) { if(nat_uac_test("8") && search("Content-type: application/sdp")) { fix_nated_sdp("2"); } } } Anil M Pannikode (hotmail) wrote: > Does fix_nated_sdp("2") function only works on SIP INVITE ? > > > > I am trying to rewrite the media IP and looks like it is working only > for SIP INVITE. (Not for any subsequent messages like 200 OK) > > > > In my case I get an invite from an external client and my server > re-invites for T.38. The client responds with 200 OK and I want to > rewrite the media IP address. (Since the client is currently passing an > internal ip for media IP) > > > > > > Anil > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 Mobile : (+1) (678) 237-1775 _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
