[SR-Users] Remove dash (-) from called number

Ali Jawad ali.jawad at splendor.net
Mon Feb 4 13:40:37 CET 2013


Hi
I did try this

              $rU = $(var(rU){s.replace,0,5} ;

and tried with a number full of zeros, my anticipation was that it will
remove the 0s and replace those with 5s in the echo log for $rU I did get,
the below, the whole number was replaced with 5.


 5(23072) ERROR: <script>: 00961000000000
---------------------------------------------------------------------------
 5(23072) ERROR: <script>: 5
---------------------------------------------------------------------------






On Mon, Feb 4, 2013 at 2:12 PM, Alex Balashov <abalashov at evaristesys.com>wrote:

> {s.subst} transformation.
>
> Ali Jawad <ali.jawad at splendor.net> wrote:
>
> >Dear All
> >I need to remove any dashes wherever they do occur in a called number,
> >any
> >guidance please ?
> >Regards
> >
> >*
> >*
> >
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> >sr-users at lists.sip-router.org
> >http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Sent from my mobile, and thus lacking in the refinement one might expect
> from a fully-fledged keyboard.
>
> Alex Balashov - Principal
> Evariste Systems LLC
> 235 E Ponce de Leon Ave
> Suite 106
> Decatur, GA 30030
> United States
> Tel: +1-678-954-0670
> Web: http://www.evaristesys.com/, http://www.alexbalashov.com/
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130204/4956d91b/attachment.htm>


More information about the sr-users mailing list