<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jayesh,<br>
<br>
The dialog topology hiding works at dialog level and you cannot use
it in a per-branch manner. So, you cannot set or not topo hiding for
some branches. Solutions are:<br>
1) simply do topo hiding when routing, so you will do it for all
branches.....<br>
2) set a separate opensips instance (or spiral on the same
opensips) to do topo hiding.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 11/23/2011 09:57 AM, Jayesh Nambiar wrote:
<blockquote
cite="mid:CALvF6vC=t1SwmtTYMPz18etzQd9OYmxURabcPwWNMu6qDv8Dng@mail.gmail.com"
type="cite">Hi All,<br>
I tested the topology_hiding function in dialog module and it
works well. Now my scenario requires that I use topology_hiding
function based on the carrier where the call is supposed to go.
And I use failure_route to failover between multiple carriers. So
the condition is, if 1st carrier requires topology_hiding I enable
it and route the call and if that call fails, the next carrier
might not need topology_hiding enabled so I need to somehow undo
the topology_hiding that I called while routing to the first
carrier.<br>
Moreover, if I call the topology_hiding again for the second
carrier, the contact header gets malformed since the contact
header is appended again and the call fails because of invalid
contact header.<br>
One possible solution I thought of was calling the topology_hiding
function in the branch_route, but opensips would not start and
logs an error saying "Command cannot be used in the block".<br>
Anyone with any possible workaround for this? Any help is
appreciated !!<br>
<br>
Thanks,<br>
<br>
--- Jayesh<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>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
OpenSIPS solutions and "know-how"</pre>
</body>
</html>