<div dir="ltr">Hi Bogdan,<br><br>Thank you for your prompt reply.&nbsp; <br><br>Rightnow, I can hard code ONE B2BUA in the failure_route, but I would rather have multiple B2BUA dispatched in a round robin fashion when the failure_route is hit and have the IPs extracted from DB.<br>
<br>Is there any possible workaround that can resolve this problem for the short term?<br><br><br>Thanks alot.<br><br>Woody<br><br><div class="gmail_quote">On Mon, Oct 20, 2008 at 3:46 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Woody,<br>
<br>
This is related to a bug I recently found in the dispatcher module - the ds_next_dst() function, even if it should set only the destination URI, it internally creates a branch - so, you will end up with 2 branches actually :<br>

 &nbsp; 1) first, with the original URI and the DST from dispatcher<br>
 &nbsp; 2) second, with the URI from script (rewrite) and no dst;<br>
<br>
Regarding the failover support, you need, to set some params, like:<br>
 &nbsp; dst_avp - &nbsp;<a href="http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id2529512" target="_blank">http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id2529512</a><br>
 &nbsp; grp_avp - <a href="http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id2533853" target="_blank">http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id2533853</a><br>
 &nbsp; cnt_avp - <a href="http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id2509422" target="_blank">http://www.opensips.org/html/docs/modules/devel/dispatcher.html#id2509422</a><br>
<br>
Regards,<br>
Bogdan<br>
<br>
Woody Dickson wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hello,<br>
<br>
I have my dispatcher setup fine for my INVITE so Opensips can now distribute calls to one of the two B2BUA. &nbsp;What I would also like to do is that when 486 is recevied, Opensips can branch another route back to one of the two B2BUA which will play the voicemail. &nbsp; I tried:<br>

ds_select_dst(&quot;1&quot;, &quot;4&quot;);<br>
ds_next_dst();<br></div>
rewritehostport(&quot;<a href="http://192.168.1.101:5070" target="_blank">192.168.1.101:5070</a> &lt;<a href="http://192.168.1.101:5070" target="_blank">http://192.168.1.101:5070</a>&gt;&quot;);<div class="Ih2E3d"><br>
<br>
only rewritehostport works, but I don&#39;t want to hard code the host and port inside the config script. &nbsp;If I use ds_next_dst(), I am getting &quot;WARNING:dispatcher:ds_next_dst: failover support disabled&quot;. &nbsp;Does anyone know how to resolve this problem?<br>

<br>
Here is my failure_route block:<br>
<br>
failure_route[1] {<br>
<br>
 &nbsp; &nbsp; &nbsp; if (t_was_cancelled()) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;<br>
 &nbsp; &nbsp;};<br>
 &nbsp; &nbsp;if (t_check_status(&quot;486&quot;)) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; revert_uri();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;prefix(&quot;b&quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xlog(&quot;L_ERR&quot;,&quot;Stepped into the 486 ruri=&lt;$ru&gt;&quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #ds_select_dst(&quot;1&quot;, &quot;4&quot;);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ds_next_dst();<br></div>
 &nbsp; &nbsp; &nbsp; &nbsp;#rewritehostport(&quot;<a href="http://192.168.1.131:5070" target="_blank">192.168.1.131:5070</a> &lt;<a href="http://192.168.1.131:5070" target="_blank">http://192.168.1.131:5070</a>&gt;&quot;);<div class="Ih2E3d">
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; append_branch();<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; route(1);<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;<br>
 &nbsp; &nbsp;};<br>
<br>
<br>
Thanks in advance for all your help.<br>
<br>
Regards,<br>
Woody<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
 &nbsp;<br>
</blockquote>
<br>
</blockquote></div><br></div>