<p>Added <code>avp_subst_pv()</code> and now this is supported:</p>
<pre><code>    $(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");
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2158?email_source=notifications&email_token=ABO7UZMEMNFKG75K4YNQT53QYM7VTA5CNFSM4JSV6QZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGZHTOQ#issuecomment-565344698">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKD55VLNM7KUHOWE5LQYM7VTANCNFSM4JSV6QZQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZM7LQKVHDXQJ64LDX3QYM7VTA5CNFSM4JSV6QZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGZHTOQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2158?email_source=notifications\u0026email_token=ABO7UZMEMNFKG75K4YNQT53QYM7VTA5CNFSM4JSV6QZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGZHTOQ#issuecomment-565344698",
"url": "https://github.com/kamailio/kamailio/pull/2158?email_source=notifications\u0026email_token=ABO7UZMEMNFKG75K4YNQT53QYM7VTA5CNFSM4JSV6QZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGZHTOQ#issuecomment-565344698",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>