Hi,

you may use avp_pushto("$ruri/domain","s:gw") . See :
   http://www.voice-system.ro/docs/avpops/ar01s06.html#avp_pushto

regards,
bogdan

unplug wrote:

Thanks!
How about if I want to use the avp value in the parameter of the
rewritehost function?
Say, user A makes a call and she has a attribute and value in the
usr_preferences table (GW - 10.0.0.1).
User B makes a call and she has a atrribute and value in the
usr_preferences table (GW - 20.0.0.1).
otherwise use GW - 60.0.0.1
How can I put the s:gw in the parameter of rewritehost function?
(i.e. rewritehost("$avp(s:gw)"))

On 1/20/06, Joachim Fabini <[EMAIL PROTECTED]> wrote:
You can use the member functions provided by the
avp-module, namely avp_pushto():

avp_pushto("$P-hint","s:function");

--Joachim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of unplug
Sent: Freitag, 20. Jänner 2006 12:04
To: [email protected]
Subject: [Users] question about avp

Say I have a record in the table usr_preferences with username,
attribute=function, value=voicemail.  I use
avp_db_load("$from/username", "s:function") to get the value.  I can
print out the value in xlog function by using $avp(s:function).  How
can I put that value in the header by using append_hf?  As I found
that it doens't work if I use
append_hf("P-hint: $avp(s:function)\r\n").  In other words, how can I
get back the value of the variable stored in avp for other functions
processing?

_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to