[OpenSIPS-Users] Error with Loose Route

Deon Vermeulen vermeulen.deon at gmail.com
Wed Sep 29 07:45:04 CEST 2010


Hi Adam

Thanks for the help, but now I get the following errors:

Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 442, column 6-7: syntax error
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 442, column 6-7: missing '(' or ')' ?
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 442, column 6-7: bad command: missing ';'?
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 442, column 7-8: bad command!)
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 442, column 8-9: bad command!)
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 442, column 10-11: bad command!)
.
.
.

Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 496, column 6-7: syntax error
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 496, column 6-7: missing '(' or ')' ?
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 496, column 6-7: bad command: missing ';'?
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 496, column 7-8: bad command!)
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 496, column 8-9: bad command!)
Sep 29 09:38:13 [29567] CRITICAL:core:yyerror: parse error in config  
file, line 496, column 10-11: bad command!)




442 -->	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          ---- #
.
.
.
		# ----- Route for user lookups ----- #
496 -->		route[3] {
         				# do lookup with method filtering
         				if (!lookup("location","m")) {
                 					switch ($retcode) {



Thanks again.

Regards


On 29 Sep 2010, at 5:24 AM, Adam Twardowski wrote:

> You have an extra } on line 342
>
> On Tue, Sep 28, 2010 at 5:07 PM, Deon Vermeulen <vermeulen.deon at gmail.com 
> > wrote:
>
>
> Just realize I forgot to attach my config.
>
> Thanks again for the help.
>
> Regards
>
>
> On 28 Sep 2010, at 11:00 PM, Deon Vermeulen wrote:
>
>> Hi List
>>
>> When I test my config script I get the below error:
>>
>> Sep 29 00:50:32 [7656] CRITICAL:core:yyerror: parse error in config  
>> file, line 347, column 9-11: syntax error
>> Sep 29 00:50:32 [7656] CRITICAL:core:yyerror: parse error in config  
>> file, line 347, column 9-11:
>> Sep 29 00:50:32 [7656] ERROR:core:main: bad config file (2 errors)
>>
>> This is the line of the loose route.
>>
>>                     # ----  preloaded route checking ---- #
>> 347  -->                if (loose_route()) {
>>                                    xlog("L_ERR", "Attempt to route  
>> with preloaded Route's [$fu/$tu/$ru/$ci]");
>>                                    if (!is_method("ACK")) {
>>                                            
>> sl_send_reply("403","Preload Route denied");
>>                                           exit;
>>                                    }
>>                       }
>>
>>
>> Attached is my complete config file.
>>
>> I've been using the Building Telephony systems with OpenSIPS 1.6  
>> book to learn how OpenSIPS work.
>> I really have no idea why I am getting this error and would really  
>> appreciate help.
>>
>> Thank you very much.
>>
>> Regards
>> Deon
>>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100929/268e7d6f/attachment.htm 


More information about the Users mailing list