On Tue, Jul 26, 2011 at 2:55 AM, tom wish <[email protected]> wrote:

> I am trying to start opensips and am getting parse errors for bad
> syntax.  I have followed everything I could find online and it looks
> correct.
>
> Could someone take a look and help me figure this out.
>
> failure_route[1] {
>        if (t_was_cancelled()) {
>                exit;
>        }
>
> }
>
> failure_route[12] {
>  if (t_was_cancelled()) {
>  exit;
>  }
>
>  if (t_check_status("408|5[0-9][0-9]")) {
> {
>  if (do_routing()) {
>   t_on_failure("13");
>   append_branch();
>   route(1);
>  };
>  exit;
>  } else if (t_check_status("3[0-9][0-9]")) {
>  t_reply("404","Not found");
>  exit;
>  }
> }
>
> failure_route[13] {
>  xlog("L_INFO", "entering failure_route[13] for reply code
> '$T_reply_code'\n");
>  if (t_was_cancelled()) {
>  exit;
>  }
> }
>
>
You have one extra curly bracket :

  if (t_check_status("408|5[0-9][0-9]")) {
>>{

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

Reply via email to