Module: sip-router
Branch: kamailio_3.0
Commit: a8270008de45ef732f9ae57a86984845d0589fd0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a827000…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Oct 30 12:54:17 2009 +0100
pv: new pv class $xavp(...)
- import from branch daniel/xavp
- access XAVPs from the config via psuedo-variables
---
modules_k/pv/pv.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/modules_k/pv/pv.c b/modules_k/pv/pv.c
index 46c25a6..700267e 100644
--- a/modules_k/pv/pv.c
+++ b/modules_k/pv/pv.c
@@ -36,7 +36,9 @@
#include "pv_time.h"
#include "pv_trans.h"
#include "pv_select.h"
-
+#ifdef WITH_XAVP
+#include "pv_xavp.h"
+#endif
MODULE_VERSION
@@ -70,6 +72,11 @@ static pv_export_t mod_pvs[] = {
pv_parse_select_name, 0, 0, 0 },
{{"snd", (sizeof("snd")-1)}, PVT_OTHER, pv_get_snd, 0,
pv_parse_snd_name, 0, 0, 0},
+#ifdef WITH_XAVP
+ { {"xavp", sizeof("xavp")-1}, /* xavp */
+ PVT_OTHER, pv_get_xavp, pv_set_xavp,
+ pv_parse_xavp_name, 0, 0, 0 },
+#endif
{{"avp", (sizeof("avp")-1)}, PVT_AVP, pv_get_avp, pv_set_avp,
pv_parse_avp_name, pv_parse_index, 0, 0},
@@ -393,6 +400,10 @@ static cmd_export_t cmds[]={
ANY_ROUTE },
{"pv_unset", (cmd_function)pv_unset, 1, fixup_pvar_null, 0,
ANY_ROUTE },
+#ifdef WITH_XAVP
+ {"pv_xavp_print", (cmd_function)pv_xavp_print, 0, 0, 0,
+ ANY_ROUTE },
+#endif
{0,0,0,0,0,0}
};