[OpenSIPS-Users] Parse errore in config file

mayamatakeshi mayamatakeshi at gmail.com
Tue Jul 26 05:06:25 CEST 2011


On Tue, Jul 26, 2011 at 2:55 AM, tom wish <tomwish at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110726/a22a798a/attachment.htm>


More information about the Users mailing list