[Serusers] Failure route and CANCEL

H Quintana hjqlopez at yahoo.com
Fri Nov 4 04:10:19 CET 2005


Hi,

I'm doing some tests using the failure route feature. 
I send a call to an offline gateway and after the
timeout, I'm sending the call to an online Gateway. 

It works fine if the call is not canceled, but when I
did so before the offline route timeout, SER is not
stopping and is sending the call to the online route. 


It seems that in this case the Reply status is NULL
because I'm getting:

"Entering failure_route. STATUS: <null>"

in the log.

Any ideas?


Thanks for your help,

Humberto

================================
failure_route[2] {
  xlog("L_INFO", "Entering failure_route. STATUS:
%rs\n");

  if (t_check_status("487")) {
      xlog("L_INFO", "Call cancelled\n");
      break;
  }

  if (t_check_status("408") ) {
      xlog("L_INFO", "Time out. Gateway offline\n");
      break;
  }
  rewritehost("a.b.c.d");
  append_branch();
  if (!t_relay()) {
	  sl_reply_error();
	  break;
  }
  break;
}


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com




More information about the sr-users mailing list