[Users] remove_hf("Contact") after fix_nated_contact()

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Jul 7 16:45:22 CEST 2006


Hi Walter,

the cause is a conflict between the change lumps - openser does not 
apply the changes immediately, but keeps them as lumps against the 
original message.
Both fix_nated_contact() and remove_hf() perform opposite ops on the 
same chunk of message.

Regards,
Bogdan

Walter Schober wrote:

> Hello!
>  
> Just curious: I do remove_hf("Contact") right after 
> fix_nated_contact() (for whatever reason).
> Then the remove_hf() removes anything but the new SIP URI from the 
> message, leaving e.g.
> sip:user at received_ip:port
> in front of the headerfield following the Contact. e.g.
>  
> Before:
> Some-Header: bla
> Contact: Name <sip:user at privateip:port>
> Authorization: bla
>  
> Then:
> Some-Header: bla
> sip:user at public_ip:portAuthorization: bla
>  
> How to remove that Contact: after having it nat_helped and then saved?
>  
> br
> Walter
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>  
>





More information about the Users mailing list