If you want to remove the contact, then do not call that function,
or use the msg_apply_changes() as mentioned previously.
Cheers,
Daniel
On 5/7/12 4:23 PM, Openser Kamailio wrote:
Hi Daniel,
Please find my log messages in attachments.
Open my log file with Notepad, it's better.
Thanks!
On Mon, May 7, 2012 at 2:41 PM,
Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,
do you use any other function that updates the address
in contact header?
If you load debugger module, enable cfgtrace option and
send the execution log messages over here, we can tell
if there is another function that may alter contact
header.
One option is to use msg_apply_changes() before and
after remove_hf(), but it is not the optimal way.
Cheers,
Daniel
On 5/7/12 2:13 PM, Openser Kamailio wrote:
Hi,
I'm currently working with kamailio 3.2. I try
to remove the Contact Header field with
remove_hf("Contact") through the file named
kamailio.cfg.
When i apply remove_hf("Contact"), it only
removes the word Contact, but the contact
address is still present. Let me show you: