[OpenSIPS-Users] Get NPANXX from a number

Vishal Pai vishalmpai at gmail.com
Wed Oct 3 13:55:24 EDT 2018


Thanks for help.

On Wed, Oct 3, 2018 at 1:04 AM Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:

> Hi Vishal,
>
> $var(x) = $(rU{s.substr,0,7));
>
> See http://www.opensips.org/Documentation/Script-Tran-2-4#toc5 ; $rU is
> the dialed username in RURI.
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
> OpenSIPS Bootcamp 2018
>   http://opensips.org/training/OpenSIPS_Bootcamp_2018/
>
> On 10/02/2018 09:53 PM, Vishal Pai wrote:
>
> Hi All
>
> I need a way in configuration file where i can take out NPANXX from the
> callee number.
>
> For Example
>
> Callee = 1318900XXXX
>
> Then function/code should return 318900.
>
> Thanks
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20181003/f568c079/attachment.html>


More information about the Users mailing list