[OpenSIPS-Users] Error with Loose Route

Deon Vermeulen vermeulen.deon at gmail.com
Wed Sep 29 11:20:54 CEST 2010


Thanks Bogdan


I had to add 2x } } before "route[1] {" line and don't get the error  
anymore.

Now I get another error:

Sep 29 13:12:59 [10174] ERROR:core:check_actions: script function  
"sl_reply_error" (types=1) does not support route type (2)
Sep 29 13:12:59 [10174] ERROR:core:check_actions: route stack[0]=0
Sep 29 13:12:59 [10174] ERROR:core:main: bad function call in config  
file


I really apologize for keep asking for help the whole time, but I am  
new to Programming and OpenSIPS, but very keen to learning.

What programming skill would you recommend I start learning to make  
this a bit easier for me?


Thanks again for the help

Regards


On 29 Sep 2010, at 9:59 AM, Bogdan-Andrei Iancu wrote:

> Hi Deon,
>
> You are missing the bracket ending your route[0] block  (before the
> "route[1] {" line )...
>
> BTW, these errors are not opensips specific, are syntax related, valid
> for any kind or programming languages.
>
> Regards,
> Bogdan
>
>
> Deon Vermeulen wrote:
>> 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 <mailto: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 <mailto:Users at lists.opensips.org>
>>>    http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org <mailto: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
>>
>
>
> -- 
> Bogdan-Andrei Iancu
> OpenSIPS Bootcamp
> 15 - 19 November 2010, Edison, New Jersey, USA
> www.voice-system.ro
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list