<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Adam<div><br></div><div>Thanks for the help, but now I get the following errors:</div><div><br></div><div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 442, column 6-7: syntax error</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 442, column 6-7: missing '(' or ')' ?</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 442, column 6-7: bad command: missing ';'?</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 442, column 7-8: bad command!)</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 442, column 8-9: bad command!)</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 442, column 10-11: bad command!)</div><div>.</div><div>.</div><div>.</div><div><br></div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 496, column 6-7: syntax error</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 496, column 6-7: missing '(' or ')' ?</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 496, column 6-7: bad command: missing ';'?</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 496, column 7-8: bad command!)</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 496, column 8-9: bad command!)</div><div>Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config file, line 496, column 10-11: bad command!)</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>442 --&gt;<span class="Apple-tab-span" style="white-space:pre">        route[1] {
                # for INVITEs enable some additional helper routes
                # ---- Helper route, if nat=yes in the R-URI  set flag 6 ---- #
                  # ----        This is used to Process REINVITES          ---- #</span></div><div>.</div><div>.</div><div>.</div><div><span class="Apple-tab-span" style="white-space:pre">                # ----- Route for user lookups ----- #
</span>496 --&gt;<span class="Apple-tab-span" style="white-space:pre">                route[3] {
                                        # do lookup with method filtering
                                        if (!lookup("location","m")) {
                                                        switch ($retcode) {</span></div><div><br></div><div><br></div><div><br></div><div>Thanks again.</div><div><br></div><div>Regards</div><div><br></div><div><br><div><div>On 29 Sep 2010, at 5:24 AM, Adam Twardowski wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">You have an extra } on line 342<br><br><div class="gmail_quote">On Tue, Sep 28, 2010 at 5:07 PM, Deon Vermeulen <span dir="ltr">&lt;<a href="mailto:vermeulen.deon@gmail.com">vermeulen.deon@gmail.com</a>&gt;</span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"></div><br><div style="word-wrap:break-word"><div><br></div><div>Just realize I forgot to attach my config.<div> <br></div><div>Thanks again for the help.</div><div><br></div><div>Regards</div><div><br></div><div><br><div><div>On 28 Sep 2010, at 11:00 PM, Deon Vermeulen wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word"> Hi List<div><br></div><div>When I test my config script I get the below error:</div><div><br></div><div><div>Sep 29 00:50:32 [7656] CRITICAL:core:yyerror: parse error in config file, line 347, column 9-11: syntax error</div> <div>Sep 29 00:50:32 [7656] CRITICAL:core:yyerror: parse error in config file, line 347, column 9-11:&nbsp;</div><div>Sep 29 00:50:32 [7656] ERROR:core:main: bad config file (2 errors)</div></div><div><br></div><div>This is the line of the loose route.</div> <div><br></div><div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# ---- &nbsp;preloaded route checking ---- #</i></div><div><i>347 &nbsp;--&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (loose_route()) {</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlog("L_ERR", "Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]");</i></div> <div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!is_method("ACK")) {</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply("403","Preload Route denied");</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit;</i></div> <div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</i></div><div><i>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</i></div></div><div><br></div><div><br></div><div>Attached is my complete config file.</div><div><br></div><div>I've been using the Building Telephony systems with OpenSIPS 1.6 book to learn how OpenSIPS work.</div> <div>I really have no idea why I am getting this error and would really appreciate help.</div><div><br></div><div>Thank you very much.</div><div><br></div><div>Regards</div><div>Deon</div><div><br></div></div></blockquote> </div><br></div></div></div><br>_______________________________________________<br> Users mailing list<br> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br> <br></blockquote></div><br> _______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></body></html>