[asterisk-users] Voicemail: saycid without prefix

A J Stiles asterisk_list at earthshod.co.uk
Tue Jul 7 02:33:58 CDT 2015


On Monday 06 Jul 2015, Luca Bertoncello wrote:
> John Kiniston <johnkiniston at 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 .



More information about the asterisk-users mailing list