[Kamailio-Users] Kamailio Perl OpenSER::AVP

Thiago Rondon thiago at aware.com.br
Thu Dec 3 14:23:27 CET 2009


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 at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users





More information about the sr-users mailing list