<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
do you use any other function that updates the address in contact
header?<br>
<br>
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.<br>
<br>
One option is to use msg_apply_changes() before and after
remove_hf(), but it is not the optimal way.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 5/7/12 2:13 PM, Openser Kamailio wrote:
<blockquote
cite="mid:CAAzHXCN_0LasKX0d3c1WJuAi8dDSL1Of=jAK11UfC2AJQZgonQ@mail.gmail.com"
type="cite">Hi,<br>
<div class="gmail_quote"><br>
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. <br>
When i apply remove_hf("Contact"), it only removes the word
Contact, but the contact address is still present. Let me show
you:<br>
<br>
Without remove_hf: <br>
Contact: sip:<<a moz-do-not-send="true"
href="http://20505@sipserver.com:5060" target="_blank">20505@sipserver.com:5060</a>>;.........<br>
<br>
After remove_hf:<br>
sip:<<a moz-do-not-send="true"
href="http://20502@sipserver.com:5060" target="_blank">20502@sipserver.com:5060</a>>;............<br>
<br>
I want to remove the whole contact address.<br>
Thanks for help!<br>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>