<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Alan,<br>
<br>
Are you using other functions in your script that might alter the
Contact header ? <br>
<br>
Because of OpenSIPS internals, you can alter the same message part
only once, and if you use the topology hiding from the dialog module
along with other Contact header alterations from the script, you
might end with bogus Contact headers.<br>
<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Vlad Paiu
OpenSIPS Developer</pre>
<br>
<br>
On 08/03/2011 07:18 PM, Alan Frisch wrote:
<blockquote
cite="mid:CAFoaFX5oZ0rrMzvSe8fyUAtULp8JjnSiTn0HGqA-v9Wb=4b-Rg@mail.gmail.com"
type="cite">I've been playing around with the new Topology Hiding
functionality in the dialog module.<br>
<br>
Now I am just merging into my script, but I noticed the
following. When topology_hiding() get's called, it seems that the
Contact header looks odd. <br>
<br>
Assume:<br>
<br>
a.b.c.d to be the IP address of the Asterisk Server<br>
w.x.y.z to be the IP address of OpenSIPS<br>
<br>
If in a non-hiding script we would see the following send back to
the client (assuming OpenSIPS is load-balancing to Asterisk
servers)...<br>
<br>
Contact: <a class="moz-txt-link-rfc2396E" href="mailto:sip:18005558355@a.b.c.d:5060"><sip:18005558355@a.b.c.d:5060></a><br>
<br>
However when calling topology_hiding() we see the following sent
to the client...<br>
<br>
Contact:
<sip:w.x.y.z:5060;did=0f2.e389a3e><a class="moz-txt-link-abbreviated" href="mailto:sip:18005558355@a.b.c.d:5060">sip:18005558355@a.b.c.d:5060</a><br>
<br>
While it seems that OpenSIPS is re-writing the contact header,
it's still appending the topology information I wish to hide...
which would seem to defeat the purpose of calling
topology_hiding() in the first place.<br>
<br>
Is there a way to avoid this?<br>
<br>
AF.<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>