[Serusers] Help with failure route
Steve Blair
blairs at isc.upenn.edu
Tue Mar 14 00:43:29 CET 2006
In failure_route[2] try rewriting the host /port to that of the second
gateway then issue the t_relay. You may want to check the status of the
t_relay if that is important.
Cecilia Muaddi wrote:
> Hello,
>
>
>
> I am trying to setup the ser.cfg to perform failure route. I have two
> PSTN gateways and would like to forward the INVITE to gateway 2 if
> gateway 1 failed.
>
>
>
> My ser.cfg is as follows:
>
>
>
> route{
>
>
>
> xlog("L_NOTICE", ">>>>>>>>>>>>>> Proccessing method %rm from
> %fu <<<<<<<<<<<<<\n");
>
> if ((method=="REGISTER") || (method=="NOTIFY") ||
> (method=="OPTIONS"))
>
> {
>
> xlog ("L_NOTICE", "REGISTER");
>
> sl_send_reply("200", "ok");
>
> break;
>
> }
>
>
>
> rewriteuri("sip:1000 at 71.137.189.10:21100");
>
> t_on_failure("1");
>
> t_relay();
>
> }
>
>
>
> failure_route[1] {
>
> append_branch("sip:1000 at 71.137.189.10:22100");
>
> t_on_failure("2");
>
> t_relay();
>
> }
>
>
>
> failure_route[2] {
>
> append_branch("sip:1000 at 71.137.189.10:23100");
>
> t_relay();
>
> }
>
>
>
>
>
> Gateway 71.137.189.10:21100 returns a 404 NOT FOUND to SER, and I see
> SER proceed to send the INVITE to 71.137.189.10:22100. The 2^nd
> gateway returns 183 (proceed). I was expecting SER to forward the SDP
> from 71.137.189.10:22100, however, the SDP actually was the SDP from
> gateway 1. How can I get SER to forward the reply from GWY2 and
> update the SDP information?
>
>
>
> Thanks
>
>
>
> Cecilia Muaddi
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>
>
More information about the sr-users
mailing list