[Serusers] failure route
sip
sip at arcdiv.com
Fri Oct 7 16:27:37 CEST 2005
Looks just like the route[1] block you have, but would be tagged as
failure_route[1] The t_on_failure("X") looks for the failure_route[X] block.
Certain things can't be done inside a failure route block, but nothing you
have in your route[1] block is disallowed I don't think...
N.
On Fri, 07 Oct 2005 10:08:48 -0400, Jason Mohler wrote
> No...I have never set up a failover route before. Can you help me
> with the syntax?
>
> sip wrote:
>
> >I assume you have a block including a failure_route[1] somewhere in there?
> >
> >N.
> >
> >
> >On Fri, 07 Oct 2005 09:24:05 -0400, Jason Mohler wrote
> >
> >
> >>I still can not run it.can the primary rewrite be in my if or do I
> >>need 2 route[] statements.
> >>
> >>if (src_ip== xxx.xxx.xxx.xxx){
> >> t_on_failure("1");
> >> rewritehost("xxx.xxx.xxx.xxx");
> >>};
> >>
> >>route[1]{
> >> rewritehost("xxx.xxx.xxx.xxx");
> >> append_branch()
> >> t_relay();
> >> break;
> >>};
> >>
> >>Atle Samuelsen wrote:
> >>
> >>
> >>
> >>>Hi Jason,
> >>>
> >>>move the break; under t_relay();
> >>>
> >>>
> >>>
> >>>- Atle
> >>>
> >>>* Jason Mohler <jmohler at dcivoice.com> [051007 00:04]:
> >>>
> >>>
> >>>
> >>>
> >>>>Thank you Paul. Does that mean that I just do it as I have changed below?
> >>>>Please forgive my ignorance on my failure route.
> >>>>
> >>>>
> >>>>if (src_ip== xxx.xxx.xxx.xxx){
> >>>> t_on_failure("1");
> >>>> rewritehost("xxx.xxx.xxx.xxx");
> >>>>};
> >>>>
> >>>>route[1]{
> >>>> rewritehost("xxx.xxx.xxx.xxx");
> >>>> append_branch()
> >>>> break;
> >>>> t_relay();
> >>>>};
> >>>>
> >>>>
> >>>>
> >>>>Paul Hazlett wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>In the failure route you need to call append_branch() after you change
> >>>>>the R-URI. Once you do this you should be able to just call t_relay().
> >>>>>
> >>>>>Regards,
> >>>>>Paul
> >>>>>
> >>>>>On 10/6/05, Jason Mohler <jmohler at dcivoice.com> wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Is there anyone that can help me with my following syntax? I am
> >>>>>>basically trying to have all calls come in from an IP and if that IP
> >>>>>>fails for some reason, it will roll to another IP.
> >>>>>>
> >>>>>>if (src_ip== xxx.xxx.xxx.xxx){
> >>>>>> t_on_failure("1");
> >>>>>> rewritehost("xxx.xxx.xxx.xxx");
> >>>>>>};
> >>>>>>
> >>>>>>route[1]{
> >>>>>> rewritehost("xxx.xxx.xxx.xxx");
> >>>>>> break;
> >>>>>> t_relay();
> >>>>>>};
> >>>>>>
> >>>>>>_______________________________________________
> >>>>>>Serusers mailing list
> >>>>>>serusers at lists.iptel.org
> >>>>>>http://lists.iptel.org/mailman/listinfo/serusers
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>_______________________________________________
> >>>>Serusers mailing list
> >>>>serusers at lists.iptel.org
> >>>>http://lists.iptel.org/mailman/listinfo/serusers
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>_______________________________________________
> >>Serusers mailing list
> >>serusers at lists.iptel.org
> >>http://lists.iptel.org/mailman/listinfo/serusers
> >>
> >>
> >
> >
> >
More information about the sr-users
mailing list