[Serusers] AVPS NEED HELP!

sip sip at arcdiv.com
Thu Oct 20 05:29:55 CEST 2005


Okay... first things first.  While there is a LITTLE flexibility, AVPops
actually relies heavily on the FORMAT of the table you want to load/store data
from. For this reason, the alias table isn't really the best thing to grab
from. You COULD specify the attribute and value columns and such manually...
but it would be a right pain in the ass, I can tell you that. 


What EXACTLY are you trying to do? Perhaps there's another way to go about it.

N.

On Wed, 19 Oct 2005 23:50:10, pol novell balcells wrote
> Hi SerUsers!
> I'm completly crazy tryin' to do the following:
> I just want to load from DB user alias and rewrite it into  "$to
> $ruri", because these calls shoud go directly to asterisk 
> voicemail
> and they are numerical not alphanumeric.
> i tried to do the following:
> 
>       if(avp_db_load($alias/$username,i:alias")
>           avp_pushto("$ruri/$to","alias")
> just to load from alias table username into an integer called alias
> and then pushed to new $ruri.
> 
> I'm new in ser and avps module it's really usefull but a little bit
> "unreadable", plz this should work for tomorrow :$ any help 
> plz!?
> be as much especific as can, because i don't know if i have done 
> the
> proper modparams.
> these are:
> 
> modparam("avpops", "avp_url", "mysql://ser:heslo@localhost/
> ser")
> modparam("avpops", "avp_table", "usr_preferences")
> #modparam("avpops", "use_domain", "1")
> modparam("avpops", "uuid_column", "uuid")
> modparam("avpops", "username_column", "username")
> modparam("avpops", "domain_column", "domain")
> modparam("avpops", "attribute_column", "attribute")
> modparam("avpops", "value_column", "value")
> modparam("avpops", "type_column", "type")
> 
> THX
> 
> _____________________________________________________________________
> Mensaje analizado y protegido, tecnologia antivirus www.trendmicro.es
> 
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers




More information about the sr-users mailing list