Thanks Bogdan Anil
-----Original Message----- From: Bogdan-Andrei Iancu [mailto:[email protected]] Sent: Thursday, June 25, 2009 2:47 PM To: Anil M Pannikode; [email protected] Subject: Re: [OpenSIPS-Users] fix_nated_contact() Hi Anil, Adding some parameters to the function should be a better way to go - I can do such a change on SVN. Regards, Bogdan Anil M Pannikode wrote: > I modified nathelper.c and added a new method > > fix_nated_contactIp_f (Copied from fix_nated_contact_f) to just modify the > IP address. Now my calls are going through. > > So may be add an option to fix_nated_contact() to support just modifying the > IP address ? > > Regards > > Anil > > > -----Original Message----- > From: Anil M Pannikode (hotmail) [mailto:[email protected]] > Sent: Tuesday, June 23, 2009 12:58 PM > To: 'Bogdan-Andrei Iancu' > Subject: RE: [OpenSIPS-Users] fix_nated_contact() > > Our situation is like this > > SIP Client <- TCP -> OpenSIPS <- UDP -> SIP / Media server > > SIP client is behind firewall. > > Initial invite (Voice) comes from SIP client. Media servers 200 OKS and > initiates a T.38 INVITE (for switching to Fax) and in our media server , it > starts a new transaction and OpenSIPS is not able to relay the re-invite > back to SIP client as the Contact info contains an internal IP address. > > If I use fix_nated_contact(), it overwrites and IP address and Port number > (to say something like IPAddres:17687) and I actually want the port number > to remain as 5060 which is what was in the initial Contact. > > Anil > > > -----Original Message----- > From: Bogdan-Andrei Iancu [mailto:[email protected]] > Sent: Tuesday, June 23, 2009 12:14 PM > To: Anil M Pannikode (hotmail) > Cc: [email protected] > Subject: Re: [OpenSIPS-Users] fix_nated_contact() > > Hi Anil, > > Only if you use a manual subst() operation over the contact > header....but why would you like to skip the port ? > > Regards, > Bogdan > > Anil M Pannikode (hotmail) wrote: > >> Rewrites Contact HF to contain request's source address:port. >> >> IS there a way to just overwrite the source address and not port ? >> >> >> >> Anil >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > > > > _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
