On Thu, Oct 2, 2014 at 10:52 AM, motty cruz <[email protected]> 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?

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       [email protected]      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

Reply via email to