[OpenSIPS-Users] Get NPANXX from a number

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Oct 2 15:33:59 EDT 2018


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 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/20181002/7f259143/attachment-0001.html>


More information about the Users mailing list