[OpenSIPS-Users] fix_nated_contact()

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Jun 25 20:47:05 CEST 2009


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:anilpannikode at hotmail.com] 
> 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:bogdan at voice-system.ro] 
> Sent: Tuesday, June 23, 2009 12:14 PM
> To: Anil M Pannikode (hotmail)
> Cc: users at lists.opensips.org
> 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
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>   
>>     
>
>
>
>   




More information about the Users mailing list