[OpenSIPS-Users] Remove prefix from number

sip at veliko-turnovo.com sip at veliko-turnovo.com
Mon Aug 29 16:02:02 CEST 2011


Thanks Marco,

Strip(4) remove first 4 characters from number. I want to remove prefix
(AVP variables).

Do you have any idea?

>try with "strip(4) ;"
>
>http://www.opensips.org/Resources/DocsCoreFcn16#toc137
>
>ciao
>marco

2011/8/28 <sip at veliko-turnovo.com>

> Dear all,
>
> I try to remove prefix from phone number without success.
>
> $avp(prefix)="159#";
> $avp(number)=$fU;
> avp_subst("$avp(number)/$avp(ret)/g", "/$avp(pref)//g");
>
> How to do this?
>
> Best regards,
> Plamen
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.opensips.org/pipermail/users/attachments/20110829/fc1cd8fd/attachment.htm>






More information about the Users mailing list