try with &quot;strip(4) ;&quot; <br><br><a href="http://www.opensips.org/Resources/DocsCoreFcn16#toc137">http://www.opensips.org/Resources/DocsCoreFcn16#toc137</a><br><br>ciao<br>marco<br><br><div class="gmail_quote">2011/8/28  <span dir="ltr">&lt;<a href="mailto:sip@veliko-turnovo.com">sip@veliko-turnovo.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear all,<br>
<br>
I try to remove prefix from phone number without success.<br>
<br>
$avp(prefix)=&quot;159#&quot;;<br>
$avp(number)=$fU;<br>
avp_subst(&quot;$avp(number)/$avp(ret)/g&quot;, &quot;/$avp(pref)//g&quot;);<br>
<br>
How to do this?<br>
<br>
Best regards,<br>
Plamen<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br>