VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
lucabert at lucabert.de Guest
|
Posted: Sat Jul 04, 2015 12:53 am Post subject: [asterisk-users] Voicemail: saycid without prefix |
|
|
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)
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
johnkiniston at gmail.com Guest
|
Posted: Mon Jul 06, 2015 11:23 am Post subject: [asterisk-users] 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}))
On Fri, Jul 3, 2015 at 10:53 PM, Luca Bertoncello <lucabert@lucabert.de (lucabert@lucabert.de)> wrote:
Quote: | 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 (lucabert@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 |
|
Back to top |
|
|
lucabert at lucabert.de Guest
|
Posted: Mon Jul 06, 2015 11:25 am Post subject: [asterisk-users] Voicemail: saycid without prefix |
|
|
John Kiniston <johnkiniston@gmail.com> schrieb:
Quote: | 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...
Regards
Luca Bertoncello
(lucabert@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 |
|
Back to top |
|
|
asterisk_list at earth... Guest
|
Posted: Tue Jul 07, 2015 2:40 am Post subject: [asterisk-users] Voicemail: saycid without prefix |
|
|
On Monday 06 Jul 2015, Luca Bertoncello wrote:
Quote: | John Kiniston <johnkiniston@gmail.com> schrieb:
Quote: | 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 |
|
Back to top |
|
|
johnkiniston at gmail.com Guest
|
Posted: Tue Jul 07, 2015 11:35 am Post subject: [asterisk-users] Voicemail: saycid without prefix |
|
|
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.
Quote: | 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}))
|
--
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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|