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(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers