Hello everyone,
I've been successfully using the kamailio Perl module, but now I'm trying to set AVPs. Unsuccessfully.
Whenever I do "use OpenSER::AVP;" and restart kamailio, the following error messages appear and kamailio doesn't start:
Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate OpenSER/AVP.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /etc/kamailio/checkip.pl line 4. Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate OpenSER/AVP.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /etc/kamailio/checkip.pl line 4. BEGIN failed--compilation aborted at /etc/kamailio/checkip.pl line 4. Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:perl:parser_init: failed to load perl file "/etc/kamailio/checkip.pl". Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:init_mod: failed to initialize module perl Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:main: error while initializing modules
Now, I cannot find this AVP module within the perl package anywhere. I downloaded the source of 1.5.0 and it's nowhere to be found. It is, however, in the .1.5 documentation.
Does anyone have any info on this for me?
Best regards, Örn
It's because your OpenSER/AVP.pm doesn't in the include path of perl modules (@INC), you can do this in your checkip.pl:
BEGIN { push(@INC, "/directory/of/OpenSER_PERL_MODULES/"); }
Or put the modules perl (.pm) files in some directory that in your @INC (see the log file).
-Thiago Rondon
Örn Arnarson escreveu:
Hello everyone,
I've been successfully using the kamailio Perl module, but now I'm trying to set AVPs. Unsuccessfully.
Whenever I do "use OpenSER::AVP;" and restart kamailio, the following error messages appear and kamailio doesn't start:
Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate OpenSER/AVP.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /etc/kamailio/checkip.pl http://checkip.pl line 4. Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate OpenSER/AVP.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /etc/kamailio/checkip.pl http://checkip.pl line 4. BEGIN failed--compilation aborted at /etc/kamailio/checkip.pl http://checkip.pl line 4. Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:perl:parser_init: failed to load perl file "/etc/kamailio/checkip.pl http://checkip.pl". Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:init_mod: failed to initialize module perl Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:main: error while initializing modules
Now, I cannot find this AVP module within the perl package anywhere. I downloaded the source of 1.5.0 and it's nowhere to be found. It is, however, in the .1.5 documentation.
Does anyone have any info on this for me?
Best regards, Örn
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hi,
Am Donnerstag 03 Dezember 2009 13:53:08 schrieb Örn Arnarson:
Whenever I do "use OpenSER::AVP;" and restart kamailio, the following error messages appear and kamailio doesn't start:
Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate OpenSER/AVP.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0
[...]
Now, I cannot find this AVP module within the perl package anywhere. I downloaded the source of 1.5.0 and it's nowhere to be found. It is, however, in the .1.5 documentation.
the OpenSER::AVP perl package is defined in the perl module itself, and is not complemented by a ".pm" file. This means that you can use the package as soon as you "use OpenSER;", a dedicated "use OpenSER::AVP" is simply not required.
Good luck! Bastian
Hello Bastian,
Thanks for your reply. That was indeed the case. In the documentation, however, it said to include the 'use OpenSER::AVP;" line. I guess that's for an older version :-)
Best regards, Örn
2009/12/3 Bastian Friedrich bastian.friedrich@collax.com
Hi,
Am Donnerstag 03 Dezember 2009 13:53:08 schrieb Örn Arnarson:
Whenever I do "use OpenSER::AVP;" and restart kamailio, the following
error
messages appear and kamailio doesn't start:
Dec 3 12:42:51 proxy02 /usr/sbin/kamailio[5392]: ERROR:core:XS_OpenSER__Message_log: perl error: Can't locate
OpenSER/AVP.pm
in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0
[...]
Now, I cannot find this AVP module within the perl package anywhere. I downloaded the source of 1.5.0 and it's nowhere to be found. It is, however, in the .1.5 documentation.
the OpenSER::AVP perl package is defined in the perl module itself, and is not complemented by a ".pm" file. This means that you can use the package as soon as you "use OpenSER;", a dedicated "use OpenSER::AVP" is simply not required.
Good luck! Bastian
-- Collax GmbH . Basler Str. 115a . 79115 Freiburg . Germany p: +49 (0) 89-990 157-28 www.collax.com
Geschäftsführer: Boris Nalbach AG München HRB 158898 . Ust.-IdNr: DE 814464942 \ I am Clinton of Borg. Your income will be assimilated.