Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
motty.cruz at gmail.com
Guest





PostPosted: Thu Oct 02, 2014 12:52 pm    Post subject: [asterisk-users] how to strip +1 out of incoming number Reply with quote

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
Back to top
asterisk at lists.mino...
Guest





PostPosted: Thu Oct 02, 2014 1:01 pm    Post subject: [asterisk-users] how to strip +1 out of incoming number Reply with quote

On 2/10/14 6:52 pm, motty cruz wrote:
Quote:
Hello, our VoIP send us caller ID +1(area)(number) for instance
+16024224334 is there a way to strip +1 out of caller ID?

${CALLERID(num):1} should do what you're after (or :2 if you need to
strip the + as well)

Kind regards,

Chris
--
This email is made from 100% recycled electrons

--
_____________________________________________________________________
-- 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
Back to top
johnkiniston at gmail.com
Guest





PostPosted: Thu Oct 02, 2014 1:09 pm    Post subject: [asterisk-users] how to strip +1 out of incoming number Reply with quote

Try the Filter function

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


On Thu, Oct 2, 2014 at 10:52 AM, motty cruz <motty.cruz@gmail.com (motty.cruz@gmail.com)> wrote:
Quote:
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
Back to top
EWieling at nyigc.com
Guest





PostPosted: Thu Oct 02, 2014 1:23 pm    Post subject: [asterisk-users] how to strip +1 out of incoming number Reply with quote

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


From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@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@gmail.com (motty.cruz@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
Back to top
asterisk.org at sedwar...
Guest





PostPosted: Thu Oct 02, 2014 2:25 pm    Post subject: [asterisk-users] how to strip +1 out of incoming number Reply with quote

Quote:
On Thu, Oct 2, 2014 at 10:52 AM, motty cruz <motty.cruz@gmail.com>
wrote:

Quote:
Hello, our VoIP send us caller ID +1(area)(number) for instance
+16024224334 is there a way to strip +1 out of caller ID?

I've always done it as 2 steps to handle carrier weirdness:

; trim leading +1 from DNIS
same = n, execif($["${DNIS:0:1}" = "+"]?set(DNIS=${DNIS:1}))
same = n, execif($["${DNIS:0:1}" = "1"]?set(DNIS=${DNIS:1}))

--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services