[OpenSIPS-Users] Remove prefix from number

Pavel Eremin pavel at eremina.net
Mon Aug 29 05:29:04 CEST 2011


Why not use Dialplan module?

...
dp_translate("1","$fU/$var(from_user))
uac_replace_from("","sip:$var(from_user)$fd")
...

On Mon, 29 Aug 2011 01:53:10 +0600, <sip at veliko-turnovo.com> wrote:

> 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


-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/



More information about the Users mailing list