[asterisk-users] Voicemail: saycid without prefix

John Kiniston johnkiniston at gmail.com
Mon Jul 6 11:23:00 CDT 2015


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}))


On Fri, Jul 3, 2015 at 10:53 PM, Luca Bertoncello <lucabert at lucabert.de>
wrote:

> Hi list!
>
> Yesterday I set up a voicemail on my Asterisk 1.8.
> It works as expected, but I'd like to have the CID without unnecessary
> prefix...
>
> Right now, if I call from my mobile phone I hear the complete prefix for my
> mobile number, indeed without "00".
> So I hear "message from 49177...".
>
> How can I set Asterisk to just read the prefix if it's necessary (so that
> calls from german numbers will not have "0049")?
>
> Thanks
> Luca Bertoncello
> (lucabert at lucabert.de)
>
> --
> _____________________________________________________________________
> -- 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/20150706/b6c78bb8/attachment.html>


More information about the asterisk-users mailing list