[OpenSIPS-Users] topology_hiding() - Improper re-writing of contact header?

Vlad Paiu vladpaiu at opensips.org
Thu Aug 4 10:06:18 CEST 2011


Hello Alan,

Are you using other functions in your script that might alter the 
Contact header ?

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.


Regards,

-- 
Vlad Paiu
OpenSIPS Developer



On 08/03/2011 07:18 PM, Alan Frisch wrote:
> I've been playing around with the new Topology Hiding functionality in 
> the dialog module.
>
> 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.
>
> Assume:
>
> a.b.c.d to be the IP address of the Asterisk Server
> w.x.y.z to be the IP address of OpenSIPS
>
> If in a non-hiding script we would see the following send back to the 
> client (assuming OpenSIPS is load-balancing to Asterisk servers)...
>
> Contact: <sip:18005558355 at a.b.c.d:5060>
>
> However when calling topology_hiding() we see the following sent to 
> the client...
>
> Contact: <sip:w.x.y.z:5060;did=0f2.e389a3e>sip:18005558355 at a.b.c.d:5060
>
> 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.
>
> Is there a way to avoid this?
>
> AF.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110804/38a9ac94/attachment.htm>


More information about the Users mailing list