[asterisk-users] how to strip +1 out of incoming number

Eric Wieling EWieling at nyigc.com
Thu Oct 2 13:23:12 CDT 2014


I prefer using FILTER() so if somehow CallerID arrived with something nasty it will be filtered out.


From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of John Kiniston
Sent: Thursday, October 02, 2014 2:09 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] how to strip +1 out of incoming number

Try the Filter function

Set(cid=${FILTER(0123456789,${CALLERID(NUM)})})

On Thu, Oct 2, 2014 at 10:52 AM, motty cruz <motty.cruz at gmail.com<mailto:motty.cruz at gmail.com>> wrote:
Hello, our VoIP send us caller ID +1(area)(number) for instance +16024224334 is there a way to strip +1 out of caller ID?

--
Thanks for your support,
Motty

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



--
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
---Heinlein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20141002/716593de/attachment.html>


More information about the asterisk-users mailing list