<div dir="ltr">You could probably use subst_hf regex to replace what's needed, something like:<div><br>subst_hf("Proxy-Authenticate", "/:test@/:best@/", "a");<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 8, 2020 at 6:28 PM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello guys,<div><br></div><div>I'm receiving a Proxy-Authenticate header with a special parameter, call if "myparam", something like:</div><div><br></div><div><font face="monospace">Proxy-Authenticate: Digest realm="<a href="http://sip.mydomain.com" target="_blank">sip.mydomain.com</a>", nonce="...", algorithm=MD5, qop="auth", opaque="XXXX/YYYY"</font><br></div><div><br></div><div>I can get the parameter like so:</div><div><br></div><div><font face="monospace">$var(myparam) = @proxy_authorization["<a href="http://sip.mydomain.com" target="_blank">sip.mydomain.com</a>"].myparam;</font><br></div><div><br></div><div>And this is great!</div><div><br></div><div>But i need to replace part of the parameter "myparam"m and I can't figure out how to do it...</div><div><br></div><div>Can anyone help me with this?</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div>Thanks!,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>