[sr-dev] git:master: avpops: refresh README

Victor Seva linuxmaniac at torreviejawireless.org
Mon Sep 23 21:52:57 CEST 2013


Module: sip-router
Branch: master
Commit: b6b5b7bf5d08ad20cc00cf89ef3d2f03e913c882
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b6b5b7bf5d08ad20cc00cf89ef3d2f03e913c882

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date:   Mon Sep 23 21:30:32 2013 +0200

avpops: refresh README

---

 modules/avpops/README |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/modules/avpops/README b/modules/avpops/README
index df0bfe7..95d529b 100644
--- a/modules/avpops/README
+++ b/modules/avpops/README
@@ -544,11 +544,24 @@ avp_pushto("$br","$avp(i:680)");
 ...
 avp_check("$avp(i:678)", "lt/i:345/g");
 avp_check("$fd","eq/$td/I");
-avp_check("$avp(s:foo)","gt/$avp($bar)/g");
+avp_check("$avp(s:foo)","gt/$avp($var(bar))/g");
 avp_check("$avp(s:foo)","re/sip:.*@bar.net/g");
 avp_check("$avp(s:foo)","fm/$avp(fm_avp)/g");
 ...
 
+   NOTE: you can use a xavp variable ($xavp(key1[indx1]=>key2[indx2])) as
+   first or second parameter. If you want to check all the values of the
+   key2 you should use [*] at indx2. The [*] index is not allowed at
+   indx1.
+...
+avp_check("$xavp(op[0]=>lt[0])", "lt/i:345/g");
+avp_check("$xavp(op=>fd","eq/$td/I");
+avp_check("$xavp(op[1]=>foo[*])","gt/$avp($var(bar))/g");
+avp_check("$avp(s:foo)","re/$xavp(op[0]=>re[*]/g");
+$var(id)=2;
+avp_check("$xavp(op=>foo[*])","fm/$xavp(op=>fm[$var(id)])/g");
+...
+
 5.8. avp_copy(old_name,new_name)
 
    Copy / move an avp under a new name.




More information about the sr-dev mailing list