[Serusers] reading avpops variables in ser.cfg

Ramin Nikaeen rnikaeen at goldline.net
Wed Jul 13 16:10:12 CEST 2005


 

Valued Colleagues,

 

Can anyone tell me how I can use/read the value of an avpops variable in
my ser.cfg?!

 

For example, if my intention is to obtain a new uri value from database
and rewrite the 

RURI using this value, would the following work properly?

 

 

                if (avp_db_load("$ruri/username", "s:new-uri"))


                {


                        rewriteuri("s:new-uri");

                };


 

I appreciate your kind assistance in advance

 

ramin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050713/433c3bc7/attachment.htm>


More information about the sr-users mailing list