Re: [SR-Users] Weird config parsing issues - 5.4

2020-09-02 Thread Daniel-Constantin Mierla
Hello,

you also have to be careful not to have such lines in comments or in the
wrong order. Maybe just grep the lines starting with #! and be sure you
have proper nesting of if[n]def and endif.

Another thing to check is if you have include/import files and if yes,
that their content is correct.

Otherwise, if you have the same config and you start it with the same
kamailio parameters, then is rather strange. You have to make a minimal
config that exposes the issue and send it over here so we can reproduce
and troubleshoot.

Cheers,
Daniel

On 26.08.20 15:43, Noah Mehl wrote:
> Daniel,
>
> I have done this, but that’s why I’m confused, because sometimes it
> works, and sometimes it doesn’t (with no changes to the configs).
>
> I ran a quick grep on the config:
>
> root@inbound-kamailio-test-02:/usr/local/etc/kamailio# grep -i '#!if'
> kamailio.cfg | wc -l
> 61
> root@inbound-kamailio-test-02:/usr/local/etc/kamailio# grep -i '#!end'
> kamailio.cfg | wc -l
> 61
>
> But again, it fails randomly.  If it really was that the #if[n]def’s
> didn’t match up with the #!endif’s, it would fail consistently?
>
> ~Noah
>
>
>> On Aug 25, 2020, at 9:30 AM, Daniel-Constantin Mierla
>> mailto:mico...@gmail.com>> wrote:
>>
>> Hello,
>>
>> in such cases, check the config file content and be sure you have
>> corresponding "#!endif" for each #!ifdef or #!ifndef.
>>
>> Cheers,
>> Daniel
>>
>> On 20.08.20 17:46, Noah Mehl wrote:
>>> All,
>>>
>>> I have built branch 5.4 from source, and I’m working with the default 
>>> config.  However, from time to time I get this error when launching 
>>> kamailio:
>>>
>>> root@inbound-kamailio-test-02:~# /usr/local/sbin/kamailio -P 
>>> /run/kamailio/kamailio.pid -f /usr/local/etc/kamailio/kamailio.cfg -m 128 
>>> -M 64 -E
>>>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
>>> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
>>> syntax error
>>>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
>>> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
>>> Invalid arguments
>>>  0(1296) CRITICAL:  [core/cfg.y:3591]: yyerror_at(): parse error in 
>>> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 35: 
>>> ERROR: bad config file (3 errors)
>>>  0(1296) ERROR:  [core/ppcfg.c:234]: pp_ifdef_level_error(): 
>>> different number of preprocessor directives: 1 more #!if[n]def as #!endif
>>>
>>> However, if I run a “make install” from the source directory, this error 
>>> goes away.  Has anyone run into this issue before?
>>>
>>> Configs attached.
>>>
>>> Thanks!
>>>
>>> ~Noah
>>>
>>>
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> -- 
>> Daniel-Constantin Mierla -- www.asipto.com
>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>> Funding: https://www.paypal.me/dcmierla
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Weird config parsing issues - 5.4

2020-08-26 Thread Noah Mehl
Daniel,

I have done this, but that’s why I’m confused, because sometimes it works, and 
sometimes it doesn’t (with no changes to the configs).

I ran a quick grep on the config:

root@inbound-kamailio-test-02:/usr/local/etc/kamailio# grep -i '#!if' 
kamailio.cfg | wc -l
61
root@inbound-kamailio-test-02:/usr/local/etc/kamailio# grep -i '#!end' 
kamailio.cfg | wc -l
61

But again, it fails randomly.  If it really was that the #if[n]def’s didn’t 
match up with the #!endif’s, it would fail consistently?

~Noah


> On Aug 25, 2020, at 9:30 AM, Daniel-Constantin Mierla  
> wrote:
> 
> Hello,
> 
> in such cases, check the config file content and be sure you have 
> corresponding "#!endif" for each #!ifdef or #!ifndef.
> 
> Cheers,
> Daniel
> 
> On 20.08.20 17:46, Noah Mehl wrote:
>> All,
>> 
>> I have built branch 5.4 from source, and I’m working with the default 
>> config.  However, from time to time I get this error when launching kamailio:
>> 
>> root@inbound-kamailio-test-02:~# /usr/local/sbin/kamailio -P 
>> /run/kamailio/kamailio.pid -f /usr/local/etc/kamailio/kamailio.cfg -m 128 -M 
>> 64 -E
>>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
>> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
>> syntax error
>>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
>> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
>> Invalid arguments
>>  0(1296) CRITICAL:  [core/cfg.y:3591]: yyerror_at(): parse error in 
>> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 35: 
>> ERROR: bad config file (3 errors)
>>  0(1296) ERROR:  [core/ppcfg.c:234]: pp_ifdef_level_error(): different 
>> number of preprocessor directives: 1 more #!if[n]def as #!endif
>> 
>> However, if I run a “make install” from the source directory, this error 
>> goes away.  Has anyone run into this issue before?
>> 
>> Configs attached.
>> 
>> Thanks!
>> 
>> ~Noah
>> 
>> 
>> 
>> 
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org 
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users 
>> 
> -- 
> Daniel-Constantin Mierla -- www.asipto.com 
> www.twitter.com/miconda  -- 
> www.linkedin.com/in/miconda 
> Funding: https://www.paypal.me/dcmierla 
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Weird config parsing issues - 5.4

2020-08-25 Thread Daniel-Constantin Mierla
Hello,

in such cases, check the config file content and be sure you have
corresponding "#!endif" for each #!ifdef or #!ifndef.

Cheers,
Daniel

On 20.08.20 17:46, Noah Mehl wrote:
> All,
>
> I have built branch 5.4 from source, and I’m working with the default config. 
>  However, from time to time I get this error when launching kamailio:
>
> root@inbound-kamailio-test-02:~# /usr/local/sbin/kamailio -P 
> /run/kamailio/kamailio.pid -f /usr/local/etc/kamailio/kamailio.cfg -m 128 -M 
> 64 -E
>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
> syntax error
>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
> Invalid arguments
>  0(1296) CRITICAL:  [core/cfg.y:3591]: yyerror_at(): parse error in 
> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 35: 
> ERROR: bad config file (3 errors)
>  0(1296) ERROR:  [core/ppcfg.c:234]: pp_ifdef_level_error(): different 
> number of preprocessor directives: 1 more #!if[n]def as #!endif
>
> However, if I run a “make install” from the source directory, this error goes 
> away.  Has anyone run into this issue before?
>
> Configs attached.
>
> Thanks!
>
> ~Noah
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Weird config parsing issues - 5.4

2020-08-20 Thread Noah Mehl
Adding a new line did not resolve this.

~Noah

> On Aug 20, 2020, at 12:33 PM, Cindy Leung  wrote:
> 
> Try adding a newline at the end of your cfg files.
> 
> On Thu, Aug 20, 2020 at 11:48 AM Noah Mehl  > wrote:
> All,
> 
> I have built branch 5.4 from source, and I’m working with the default config. 
>  However, from time to time I get this error when launching kamailio:
> 
> root@inbound-kamailio-test-02:~# /usr/local/sbin/kamailio -P 
> /run/kamailio/kamailio.pid -f /usr/local/etc/kamailio/kamailio.cfg -m 128 -M 
> 64 -E
>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
> syntax error
>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
> Invalid arguments
>  0(1296) CRITICAL:  [core/cfg.y:3591]: yyerror_at(): parse error in 
> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 35: 
> ERROR: bad config file (3 errors)
>  0(1296) ERROR:  [core/ppcfg.c:234]: pp_ifdef_level_error(): different 
> number of preprocessor directives: 1 more #!if[n]def as #!endif
> 
> However, if I run a “make install” from the source directory, this error goes 
> away.  Has anyone run into this issue before?
> 
> Configs attached.
> 
> Thanks!
> 
> ~Noah
> 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org 
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users 
> 
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org 
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users 
> 
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Weird config parsing issues - 5.4

2020-08-20 Thread Cindy Leung
Try adding a newline at the end of your cfg files.

On Thu, Aug 20, 2020 at 11:48 AM Noah Mehl  wrote:

> All,
>
> I have built branch 5.4 from source, and I’m working with the default
> config.  However, from time to time I get this error when launching
> kamailio:
>
> root@inbound-kamailio-test-02:~# /usr/local/sbin/kamailio -P
> /run/kamailio/kamailio.pid -f /usr/local/etc/kamailio/kamailio.cfg -m 128
> -M 64 -E
>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in
> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34:
> syntax error
>  0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in
> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34:
> Invalid arguments
>  0(1296) CRITICAL:  [core/cfg.y:3591]: yyerror_at(): parse error in
> config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 35:
> ERROR: bad config file (3 errors)
>  0(1296) ERROR:  [core/ppcfg.c:234]: pp_ifdef_level_error():
> different number of preprocessor directives: 1 more #!if[n]def as #!endif
>
> However, if I run a “make install” from the source directory, this error
> goes away.  Has anyone run into this issue before?
>
> Configs attached.
>
> Thanks!
>
> ~Noah
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Weird config parsing issues - 5.4

2020-08-20 Thread Noah Mehl
All,

I have built branch 5.4 from source, and I’m working with the default config.  
However, from time to time I get this error when launching kamailio:

root@inbound-kamailio-test-02:~# /usr/local/sbin/kamailio -P 
/run/kamailio/kamailio.pid -f /usr/local/etc/kamailio/kamailio.cfg -m 128 -M 64 
-E
 0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
syntax error
 0(1296) CRITICAL:  [core/cfg.y:3588]: yyerror_at(): parse error in 
config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 30-34: 
Invalid arguments
 0(1296) CRITICAL:  [core/cfg.y:3591]: yyerror_at(): parse error in 
config file /usr/local/etc/kamailio/kamailio.cfg, line 410, column 35: 
ERROR: bad config file (3 errors)
 0(1296) ERROR:  [core/ppcfg.c:234]: pp_ifdef_level_error(): different 
number of preprocessor directives: 1 more #!if[n]def as #!endif

However, if I run a “make install” from the source directory, this error goes 
away.  Has anyone run into this issue before?

Configs attached.

Thanks!

~Noah




kamailio.cfg
Description: Binary data


kamailio-local.cfg
Description: Binary data
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users