Error in Module Permissions

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in Module Permissions

Alcindo Schleder

I'm trying to use the function and check_address get an error compiling the script.

 

Script line 390.

                if (check_address("1", "$si", "$sp")) {

                        xlog("IP Allow Routing to $si");

                }

 

Error:

CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 396, column 38-39: unknown command <check_address>, missing loadmodule?

 

Alcindo Schleder

Gerente de Negócios – [hidden email]

(51) 3564-4156

(51) 9790-9437

Renovare Telecom

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Error in Module Permissions

Stefano Pisani
missing loadmodule?

Il 18/03/2014 18.03, Alcindo Schleder ha scritto:

I'm trying to use the function and check_address get an error compiling the script.

 

Script line 390.

                if (check_address("1", "$si", "$sp")) {

                        xlog("IP Allow Routing to $si");

                }

 

Error:

CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 396, column 38-39: unknown command <check_address>, missing loadmodule?

 

Alcindo Schleder

Gerente de Negócios – [hidden email]

(51) 3564-4156

(51) 9790-9437

Renovare Telecom

 



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

RES: Error in Module Permissions

Alcindo Schleder

The module is loaded.

 

De: [hidden email] [mailto:[hidden email]] Em nome de Stefano Pisani
Enviada em: terça-feira, 18 de março de 2014 14:05
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] Error in Module Permissions

 

missing loadmodule?

Il 18/03/2014 18.03, Alcindo Schleder ha scritto:

I'm trying to use the function and check_address get an error compiling the script.

 

Script line 390.

                if (check_address("1", "$si", "$sp")) {

                        xlog("IP Allow Routing to $si");

                }

 

Error:

CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 396, column 38-39: unknown command <check_address>, missing loadmodule?

 

Alcindo Schleder

Gerente de Negócios – [hidden email]

(51) 3564-4156

(51) 9790-9437

Renovare Telecom

 




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Error in Module Permissions

Laszlo
In reply to this post by Alcindo Schleder

the function expects 4 mandatory parameters, not 3

- Laszli

2014.03.18. 18:04, "Alcindo Schleder" <[hidden email]> ezt írta:

I'm trying to use the function and check_address get an error compiling the script.

 

Script line 390.

                if (check_address("1", "$si", "$sp")) {

                        xlog("IP Allow Routing to $si");

                }

 

Error:

CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 396, column 38-39: unknown command <check_address>, missing loadmodule?

 

Alcindo Schleder

Gerente de Negócios – [hidden email]

(51) 3564-4156

(51) 9790-9437

Renovare Telecom

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

RES: Error in Module Permissions

Alcindo Schleder

Hi Laszli.

 

With 4 parameters returns the same error.

 

 

 

De: [hidden email] [mailto:[hidden email]] Em nome de Laszlo
Enviada em: terça-feira, 18 de março de 2014 14:24
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] Error in Module Permissions

 

the function expects 4 mandatory parameters, not 3

- Laszli

2014.03.18. 18:04, "Alcindo Schleder" <[hidden email]> ezt írta:

I'm trying to use the function and check_address get an error compiling the script.

 

Script line 390.

                if (check_address("1", "$si", "$sp")) {

                        xlog("IP Allow Routing to $si");

                }

 

Error:

CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 396, column 38-39: unknown command <check_address>, missing loadmodule?

 

Alcindo Schleder

Gerente de Negócios – [hidden email]

(51) 3564-4156

(51) 9790-9437

Renovare Telecom

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: RES: Error in Module Permissions

Laszlo
that sounds interesting.
if you replace your check_address row with this, what do you get back?
if (check_address("1","$si","$sp","$proto","")) {



2014-03-18 18:56 GMT+01:00 Alcindo Schleder <[hidden email]>:

Hi Laszli.

 

With 4 parameters returns the same error.

 

 

 

De: [hidden email] [mailto:[hidden email]] Em nome de Laszlo
Enviada em: terça-feira, 18 de março de 2014 14:24


Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] Error in Module Permissions

 

the function expects 4 mandatory parameters, not 3

- Laszli

2014.03.18. 18:04, "Alcindo Schleder" <[hidden email]> ezt írta:

I'm trying to use the function and check_address get an error compiling the script.

 

Script line 390.

                if (check_address("1", "$si", "$sp")) {

                        xlog("IP Allow Routing to $si");

                }

 

Error:

CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 396, column 38-39: unknown command <check_address>, missing loadmodule?

 

Alcindo Schleder

Gerente de Negócios – [hidden email]

(51) 3564-4156

(51) 9790-9437

Renovare Telecom

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--

--
Kind regards,
Laszlo Bekesi
http://voipfreak.net

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

RES: RES: Error in Module Permissions

Alcindo Schleder

Hi all..

 

I found the error. The version of the module was incorrect. The opensips was loaded through the rpm package version 1.9.2. I downloaded the source and recompiled ... voilà it worked.

 

[]s

 

De: [hidden email] [mailto:[hidden email]] Em nome de Laszlo
Enviada em: terça-feira, 18 de março de 2014 15:41
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] RES: Error in Module Permissions

 

that sounds interesting.

if you replace your check_address row with this, what do you get back?

if (check_address("1","$si","$sp","$proto","")) {

 

 

2014-03-18 18:56 GMT+01:00 Alcindo Schleder <[hidden email]>:

Hi Laszli.

 

With 4 parameters returns the same error.

 

 

 

De: [hidden email] [mailto:[hidden email]] Em nome de Laszlo
Enviada em: terça-feira, 18 de março de 2014 14:24


Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] Error in Module Permissions

 

the function expects 4 mandatory parameters, not 3

- Laszli

2014.03.18. 18:04, "Alcindo Schleder" <[hidden email]> ezt írta:

I'm trying to use the function and check_address get an error compiling the script.

 

Script line 390.

                if (check_address("1", "$si", "$sp")) {

                        xlog("IP Allow Routing to $si");

                }

 

Error:

CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 396, column 38-39: unknown command <check_address>, missing loadmodule?

 

Alcindo Schleder

Gerente de Negócios – [hidden email]

(51) 3564-4156

(51) 9790-9437

Renovare Telecom

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--


--

Kind regards,

Laszlo Bekesi

http://voipfreak.net


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: RES: RES: Error in Module Permissions

Stefano Pisani
So I was right :-)

Il 18/03/2014 20.11, Alcindo Schleder ha scritto:

Hi all..

 

I found the error. The version of the module was incorrect. The opensips was loaded through the rpm package version 1.9.2. I downloaded the source and recompiled ... voilà it worked.

 

[]s

 

De: [hidden email] [[hidden email]] Em nome de Laszlo
Enviada em: terça-feira, 18 de março de 2014 15:41
Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] RES: Error in Module Permissions

 

that sounds interesting.

if you replace your check_address row with this, what do you get back?

if (check_address("1","$si","$sp","$proto","")) {

 

 

2014-03-18 18:56 GMT+01:00 Alcindo Schleder <[hidden email]>:

Hi Laszli.

 

With 4 parameters returns the same error.

 

 

 

De: [hidden email] [mailto:[hidden email]] Em nome de Laszlo
Enviada em: terça-feira, 18 de março de 2014 14:24


Para: OpenSIPS users mailling list
Assunto: Re: [OpenSIPS-Users] Error in Module Permissions

 

the function expects 4 mandatory parameters, not 3

- Laszli

2014.03.18. 18:04, "Alcindo Schleder" <[hidden email]> ezt írta:

I'm trying to use the function and check_address get an error compiling the script.

 

Script line 390.

                if (check_address("1", "$si", "$sp")) {

                        xlog("IP Allow Routing to $si");

                }

 

Error:

CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 396, column 38-39: unknown command <check_address>, missing loadmodule?

 

Alcindo Schleder

Gerente de Negócios – [hidden email]

(51) 3564-4156

(51) 9790-9437

Renovare Telecom

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--


--

Kind regards,

Laszlo Bekesi

http://voipfreak.net



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users