<div dir="ltr">Hi Bogdan,<br><br>Thank you for your prompt reply. <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"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></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>
1) first, with the original URI and the DST from dispatcher<br>
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>
dst_avp - <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>
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>
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. 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. I tried:<br>
ds_select_dst("1", "4");<br>
ds_next_dst();<br></div>
rewritehostport("<a href="http://192.168.1.101:5070" target="_blank">192.168.1.101:5070</a> <<a href="http://192.168.1.101:5070" target="_blank">http://192.168.1.101:5070</a>>");<div class="Ih2E3d"><br>
<br>
only rewritehostport works, but I don't want to hard code the host and port inside the config script. If I use ds_next_dst(), I am getting "WARNING:dispatcher:ds_next_dst: failover support disabled". Does anyone know how to resolve this problem?<br>
<br>
Here is my failure_route block:<br>
<br>
failure_route[1] {<br>
<br>
if (t_was_cancelled()) {<br>
exit;<br>
};<br>
if (t_check_status("486")) {<br>
revert_uri();<br>
prefix("b");<br>
xlog("L_ERR","Stepped into the 486 ruri=<$ru>");<br>
#ds_select_dst("1", "4");<br>
ds_next_dst();<br></div>
#rewritehostport("<a href="http://192.168.1.131:5070" target="_blank">192.168.1.131:5070</a> <<a href="http://192.168.1.131:5070" target="_blank">http://192.168.1.131:5070</a>>");<div class="Ih2E3d">
<br>
append_branch();<br>
route(1);<br>
exit;<br>
};<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>
<br>
</blockquote>
<br>
</blockquote></div><br></div>