Hello everybody

How can I separate different Reason headers to achieve a setup where
NO_ANSWER (480) ends the dialog (and sends CANCELs) while other reasons
like e.g. TM timeout leads to routing the requests to GW?

Could this be handled in the failure route as something like below or am I
way off here?

  if (t_check_status("480")) {
     t_relay();
     exit;
  }

  if (t_check_status("487")) {
     t_relay();
     exit;
  }

  if (t_check_status("404")) {
     route_to_gw("gwname");
     t_on_failure("gwfailure");
  }

Thanks!

//Andy
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to