<br><br><div class="gmail_quote">On Tue, Jul 26, 2011 at 2:55 AM, tom wish <span dir="ltr"><<a href="mailto:tomwish@gmail.com">tomwish@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I am trying to start opensips and am getting parse errors for bad<br>
syntax. I have followed everything I could find online and it looks<br>
correct.<br>
<br>
Could someone take a look and help me figure this out.<br>
<br>
failure_route[1] {<br>
if (t_was_cancelled()) {<br>
exit;<br>
}<br>
<br>
}<br>
<br>
failure_route[12] {<br>
if (t_was_cancelled()) {<br>
exit;<br>
}<br>
<br>
if (t_check_status("408|5[0-9][0-9]")) {<br>
{<br>
if (do_routing()) {<br>
t_on_failure("13");<br>
append_branch();<br>
route(1);<br>
};<br>
exit;<br>
} else if (t_check_status("3[0-9][0-9]")) {<br>
t_reply("404","Not found");<br>
exit;<br>
}<br>
}<br>
<br>
failure_route[13] {<br>
xlog("L_INFO", "entering failure_route[13] for reply code '$T_reply_code'\n");<br>
if (t_was_cancelled()) {<br>
exit;<br>
}<br>
}<br>
<br></blockquote></div><br>You have one extra curly bracket :<br><br> if (t_check_status("408|5[0-9][0-9]")) {<br>>>{<br><br>regards,<br>Takeshi<br>