[Serusers] reading avpops variables in ser.cfg
Evan Borgström
evan.borgstrom at ca.mci.com
Wed Jul 13 16:23:13 CEST 2005
Ramin,
You need to use the avp_pushto function to replace the URI:
http://www.voice-system.ro/docs/avpops/ar01s06.html#avp_pushto
if (avp_db_load("$ruri/username", "s:new-uri")) {
avp_pushto("$ruri", "s:new-uri");
};
-Evan
Ramin Nikaeen wrote:
>
>
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list