Voicemail: Saycid Without Prefix

Home » Asterisk Users » Voicemail: Saycid Without Prefix
Asterisk Users 4 Comments

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@lucabert.de)

4 thoughts on - Voicemail: Saycid Without Prefix

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

  • John Kiniston schrieb:

    Thanks!

    I already had this idea and implemented it. It works…

    Regards Luca Bertoncello
    (lucabert@lucabert.de)

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

  • Nice!

    I didn’t know what dialing rules may apply to his location, Your code does look like an improvement on mine tho.

    I love the REGEX function.

    Even better, if the first 4 digits are “0049”, you could replace them with 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