[Serusers] About the failure route problem

Greger V. Teigre greger at teigre.com
Thu Sep 7 09:32:44 CEST 2006


 rewritehostport("voice_gateway_1:5060");
You rewrite the URI ready to be t_relayed.

forward(uri:host, uri:port);
Then you explicitly forward the message before setting t_on_failure.
g-)

AR. wrote:
> Hi all
> I have a problme about the failure route
> My scenario is that:
> If voice gateway 1 is busy then forward the call to the voice gateway 2
> My config is :
> route[5] {
> rewritehostport("voice_gateway_1:5060");
> forward(uri:host, uri:port);
> t_on_failure("2");
> if(isflagset(1))
> append_branch();
> setflag(1);
> t_relay();
> break;
> }
> failure_route[2] {
> route(6);
> }
> route[6] {
> rewritehostport("voice_gateway_2:5060");
> forward(uri:host, uri:port);
> break;
> }
> But it still doesn't work
> anyone help?
> Best Regards
> AR.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060907/6b2b629d/attachment.htm>


More information about the sr-users mailing list