[OpenSER-Users] perl
David Villasmil Govea
david.villasmil at gmail.com
Mon Dec 3 16:18:05 CET 2007
>
>
> Message: 9
> Date: Mon, 3 Dec 2007 15:59:06 +0100
> From: Bastian Friedrich <bastian.friedrich at collax.com>
> Subject: Re: [OpenSER-Users] perl
> To: users at lists.openser.org
> Message-ID: <200712031559.06986.bastian.friedrich at collax.com>
> Content-Type: text/plain; charset="iso-8859-15"
>
> On Monday 03 December 2007, David Villasmil Govea wrote:
> [...]
> > 0(0) perl error: Can't locate OpenSER/Utils/PhoneNumber.pm in @INC
> [...]
> >
> > Although modules are there in:
> >
>
> No, there is no "PhoneNumber.pm" in that path.
>
> [...]
> > me at server:/usr/local/lib/openser/perl# ls -l
> > /usr/local/lib/openser/perl/OpenSER/Utils/
> > total 8
> > -rw-r--r-- 1 root root 6096 2007-12-03 14:00 PhoneNumbers.pm
>
> It's "PhoneNumbers.pm". Correct typing is _not_ optional while programming
> :)
thanks for the heads-up.. but i didn't type a thing, its all in the tar
file... so there's a typo there.
so THIS should be the correct /usr/local/etc/openser/openser.pl file, which
comes with the tar ball:
**************************************************************************************************************
push @INC, '/usr/local/lib/openser/perl/';
use OpenSER::Utils::PhoneNumbers;
OpenSER->import;
my $phonenumber = new OpenSER::Utils::PhoneNumbers(
publicAccessPrefix => "0",
internationalPrefix => "+",
longDistancePrefix => "0",
areaCode => "761",
pbxCode => "456842",
countryCode => "49"
);
$canonical = canonicalForm("07612034567");
$number = dialNumber("+497612034567");
exit 0;
**************************************************************************************************************
thanks
>
>
> > > > - Is there a tutorial for using MySQL as a backend? How about a
> > > > cluster?
> > >
> > > MySQL backend for what?
> >
> > I have it working as a MySQL backend for users. What i need is the
> logging
> > of cdrs... i understand that there are several records for each call.
> But,
> > how do i configure this? is it possible with MySQL? thanks a lot.
>
> You should start a different thread with a different subject.
>
> What you are looking for seems to be accounting, provided by the OpenSER
> module "acc". Module documentation is available on
> http://www.openser.org/docs/modules/1.3.x/acc.html
> The "acc" module works fine with MySQL.
>
> Bastian
>
> --
> Collax GmbH . Burkheimer Stra?e 3 . 79111 Freiburg . Germany
> p: +49 (0) 761-45684-24
> f: +49 (0) 761-45684-10 www.collax.com
>
> Gesch?ftsf?hrer: William K. Hite / Boris Nalbach
> AG M?nchen HRB 158898 . Ust.-IdNr: DE 814464942
> \ There are 2 ways to handle women and I know neither.
>
>
>
> ------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>
> End of Users Digest, Vol 31, Issue 5
> ************************************
>
--
DVG
--
Imagination is more important than knowledge
Albert Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20071203/5ea2da9e/attachment.htm>
More information about the sr-users
mailing list