[sr-dev] [kamailio/kamailio] avpops: avp_subst() support pvar as subst parameter (#2158)

Victor Seva notifications at github.com
Fri Dec 13 09:12:09 CET 2019


Added ``avp_subst_pv()`` and now this is supported:
```
    $(avp(src)[*]) = "testME";
    $var(x) = "/e/j/gi";
    avp_subst_pv("$avp(src)", "$var(x)");

    $var(z) = "j";
    $var(y) = "e";
    $var(x) = "/" + $var(y) + "/" + $var(z) + "/gi";
    avp_subst_pv("$avp(src)", "$var(x)");
    avp_subst_pv("$avp(src)", "/$var(y)/$var(z)/gi");
    avp_subst_pv("$avp(src)", "/" + $var(y) + "/" + $var(z) + "/gi");
    avp_subst_pv("$avp(src)", "/e/j/gi");
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2158#issuecomment-565344698
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191213/e10a510f/attachment.html>


More information about the sr-dev mailing list