<div dir="auto"><div><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I try replace info PAI header by using subst() function in route block as below:<br>
<br>
route[3]<br>
{<br>
        ...<br>
        $var(fromU) = 22227777;<br>
        ...<br>
        subst('/^P-Asserted-Identity:(<wbr>.*)sip:[^@]*@([a-zA-Z0-9.:]+)(<wbr>.*)$/P-Asserted-Identity:\<wbr>1sip:$var(fromU)@\2\3/ig');<br>
        ...<br>
        ...<br>
        forward();<br>
        exit;<br>
}<br>
<br>
but when I read ngrep command output I catch P-Asserted-Identity header as below:<br>
<br>
++++++++++++++++++++++++++++++<wbr>+++++++++++++++++<br>
before route[3] processing:<br>
INVITE <a href="http://sip:99992222@15.113.132.21:5060" rel="noreferrer" target="_blank">sip:99992222@15.113.132.21:<wbr>5060</a> SIP/2.0.<br>
...<br>
P-Asserted-Identity: "Display Name 7777" <<a href="mailto:sip%3A7777@101.14.101.245">sip:7777@101.14.101.245</a>>.<br>
...<br>
<br>
++++++++++++++++++++++++++++++<wbr>+++++++++++++++++<br>
after route[3] processing:<br>
INVITE <a href="http://sip:99992222@15.113.132.21:5060" rel="noreferrer" target="_blank">sip:99992222@15.113.132.21:<wbr>5060</a> SIP/2.0.<br>
...<br>
P-Asserted-Identity: "Display Name 7777" <<a href="mailto:sip%3A22227777@101.14.101.245">sip:22227777@101.14.101.245</a>>.<wbr>P-Asserted-Identity: "Display Name 7777" <<a href="mailto:sip%3A7777@101.14.101.245">sip:7777@101.14.101.245</a>>.<br>
...<br>
++++++++++++++++++++++++++++++<wbr>+++++++++++++++++<br>
<br>
Is it normal or bug behaviors?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Regards</div><div dir="auto">CMA</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div><br></div></div>