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@received_ip:port in front of the headerfield following the Contact. e.g.
Before: Some-Header: bla Contact: Name sip:user@privateip:port Authorization: bla
Then: Some-Header: bla sip:user@public_ip:portAuthorization: bla
How to remove that Contact: after having it nat_helped and then saved?
br Walter
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@received_ip:port in front of the headerfield following the Contact. e.g.
Before: Some-Header: bla Contact: Name sip:user@privateip:port Authorization: bla
Then: Some-Header: bla sip:user@public_ip:portAuthorization: bla
How to remove that Contact: after having it nat_helped and then saved?
br Walter
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users