[Serusers] avpops

Sebastian Kühner skuehner at veraza.com
Tue Sep 13 20:02:40 CEST 2005


Hi!

Thanks! The problem is that there are examples for every command. But how do
I connect them? I've problems to understand them...

Well, I guess (please help me with my "idea"):
To get a value from the database (Table: subscriber - column: caller_id) for
the calling user, I have to make:

modparam("avpops", "avp_table", "subscriber")
modparam("avpops", "uuid_column", "id")
modparam("avpops", "username_column", "username")
modparam("avpops", "domain_column", "domain")
modparam("avpops", "value_column", "caller_id")

avp_db_load("$uuid", "s:$uri");

Thanks for your help!

Sebastian


----- Original Message ----- 
From: "Andreas Granig" <andreas.granig at inode.info>
To: "Sebastian Kühner" <skuehner at veraza.com>
Cc: <serusers at lists.iptel.org>
Sent: Tuesday, September 13, 2005 10:33 AM
Subject: Re: [Serusers] avpops


> Sebastian Kühner wrote:
> > Can anyone of you give me an example how to get data from a database
with
> > the avpops-module? I want to get a value from a special table and a
special
> > column...
> >
> > I didn't find any examples in the internet and the commands only don't
help
> > me very much...
>
> http://www.voice-system.ro/docs/avpops/0.9.0/ has some examples.
>
> Andy
>




More information about the sr-users mailing list