[Serusers] Redundant forwarding

Jiri Kuthan jiri at iptel.org
Fri Feb 21 22:03:25 CET 2003


Funny, I copy'n'pasted the config file in my SER and it worked.
You may want to look at your log files to see what is the error.

There is a tougher issue though: you never know with stateless
forwarding whether a transaction completed or not. You only know
that sending did not fail (e.g., due to lack of memory). You
need to switch over to stateful processing to achieve the fail-
over capability. The voicemail example is similar to what you
want to do.
http://www.iptel.org/ser/doc/seruser-html/x510.html#AEN616

-Jiri

At 08:33 PM 2/21/2003, Jamin W. Collins wrote:
>This is probably a very simple question.  I'm trying to create a very
>simplistic configuration that simply forwards the call to one of two
>fixed destinations.  Essentially, it forwards all calls to server A and
>if that fails, forwards the call to server B.  Forwarding to server A is
>no problem.  Within route, I simply have:
>
>
>   if (!mf_process_maxfwd_header("10")) {
>      sl_send_reply("483","Too Many Hops");
>      break;
>   };
>   if (len_gt( max_len )) {
>      sl_send_reply("513", "Message too big");
>      break;
>   };
>   rewriteFromRoute();
>
>   if (!forward("192.168.1.1")) {
>      sl_reply_error();
>   };
>
>This works perfectly, but only forwards to one server.  I tried changing
>the last bit to:
>
>   if (!forward("192.168.1.1")) {
>      if (!forward("192.168.0.1")) {
>         sl_reply_error();
>      };
>   };
>
>However, this results in "ERROR: bad config file (5 errors)".
>Any suggestions?  Is something like this possible?
>            
>-- 
>Jamin W. Collins
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers 

--
Jiri Kuthan            http://iptel.org/~jiri/ 




More information about the sr-users mailing list