[OpenSER-Users] AVPOPS Issue

Ali Jawad ali.jawad at splendor.net
Mon Jun 9 11:21:32 CEST 2008


Dear Iñaki 
Thank you for your reply. Can you please provide an example about the Group Module ?
Thanks
-----Original Message-----
From: users-bounces at lists.openser.org [mailto:users-bounces at lists.openser.org] On Behalf Of Iñaki Baz Castillo
Sent: Monday, June 09, 2008 12:20 PM
To: users at lists.openser.org
Subject: Re: [OpenSER-Users] AVPOPS Issue

El Monday 09 June 2008 11:06:09 Ali Jawad escribió:
> Hi All
>
> I have added a column called status to the subscriber table. I want to
> check that column in the route() function and act according to it's
> value.
>
>
>
> In the global settings I put
>
>
>
> # ----- AVP params --------
>
>
>
> modparam("avpops", "avp_url", "mysql://openser:ccccc@cccccc/openser")
>
> modparam("avpops","avp_table","subscriber")
>
> modparam("avpops","db_scheme",
> "scheme1:username_col=username;value_col=status;value_type=string;table=
> subscriber")

You use "username" column (that just stores the USERNAME without @domain)...



> And In the route statement I put
>
>
>
> if (avp_db_load("$ru","$avp(s:disabled)/$scheme1"))

...but here you look for the entire Request-URI ($ru). Maybe you mean $rU ?



BTW, I think is much better using "group" module for the purpose you want.


-- 
Iñaki Baz Castillo
ibc at in.ilimit.es

_______________________________________________
Users mailing list
Users at lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





More information about the Users mailing list