On Monday 06 Jul 2015, Luca Bertoncello wrote:
> John Kiniston <johnkinis...@gmail.com> schrieb:
> > The easiest solution may be to strip the leading zero's off your caller
> > ID before your caller enters the Voicemail app to leave you a message.
> > 
> > 
> > ExecIf(REGEX("^[0][0]."
> > ${CALLERID(NUM)})?Set(CALLERID(num)=${CALLERID(NUM):2}))
> 
> Thanks!
> 
> I already had this idea and implemented it.
> It works...

Even better, if the first 4 digits are "0049", you could replace them with "0" 
as though it was an inland call:

ExecIf(REGEX("^0049." 
${CALLERID(NUM)})?Set(CALLERID(num)=0${CALLERID(NUM):4}))

-- 
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_____________________________________________________________________
-- 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