<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
you have fix_nated_contact() which does an update to contact
address:<br>
<br>
May 7 15:46:58 localhost /usr/local/sbin/kamailio[15742]: ERROR:
*** cfgtrace: c=[/usr/local/etc/kamailio//kamailio.cfg] l=889 a=25
n=fix_nated_contact<br>
<br>
If you want to remove the contact, then do not call that function,
or use the msg_apply_changes() as mentioned previously.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 5/7/12 4:23 PM, Openser Kamailio wrote:
<blockquote
cite="mid:CAAzHXCOi+37NYNf8VHWYWe139Ge+6_54t8evEmGS1Tuz+KxO8A@mail.gmail.com"
type="cite">
<div>Hi Daniel,</div>
<div><br>
</div>
Please find my log messages in attachments.
<div>Open my log file with Notepad, it's better.<br>
<div><br>
</div>
<div>Thanks!<br>
<br>
<div class="gmail_quote">On Mon, May 7, 2012 at 2:41 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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
<div>
<div class="h5"><br>
<br>
On 5/7/12 2:13 PM, Openser Kamailio wrote: </div>
</div>
<blockquote type="cite">
<div>
<div class="h5">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></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
<span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
<span class="HOEnZb"><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</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>