[Serusers] AVPS NEED HELP!
Pol Novell Balcells
pol.novell01 at campus.upf.es
Thu Oct 20 09:33:00 CEST 2005
> What i want to do is to overwrite TO header from his numeric alias,
> for example.
> if i call to user.user at mydomain.com i wannt to forward this call to
> asterisk changing to header from his alias -> 12341 at mydomain.com
> because asterisk is expected to read user part from sip call and
> check voicemail.
>
> Is any other way to acomplish it?
> Regards.
>
>
>>
>> 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
>>>
>>>
>>
>>
>> _____________________________________________________________________
>> Mensaje analizado y protegido, tecnologia antivirus www.trendmicro.es
>>
>>
>
>
_____________________________________________________________________
Mensaje analizado y protegido, tecnologia antivirus www.trendmicro.es
More information about the sr-users
mailing list