[OpenSIPS-Users] a simple perl question

Chris axisml at gmail.com
Wed Nov 12 22:45:15 CET 2008


On Wednesday 12 November 2008 2:22:36 pm Alex Balashov wrote:
> Alex R.S.M wrote:
> > I've tried it before
> >
> > # perl
> > OpenSIPS::AVP::add(4,$x);
> >
> > #config file
> > xlog ("$avp(i:4)");
> >
> > but I am getting error:
> > perl error: Undefined subroutine &OpenSIPS::AVP::add called line 84.
>
> Are you 'use'ing OpenSIPS::AVP?

The only 'uses' I have in my working perl script is:

use strict;
use warnings;
use OpenSIPS qw ( log );
use OpenSIPS::Constants;
use DBI;

seems like, when I wrote it, I tried using OpenSIPS::AVP, or something to that 
effect and got errors. Works with the above fine though and the AVP functions 
are available in my perl script.



Chris



More information about the Users mailing list