-----Original Message----- <snip> Is this possible with asterisk? Anyone have a sample dialplan? -other than the problem outlined below I would try something like S,1,wait(20) S,2,voicemail(uwhatever) S,3,hangup That should ignore the call for 20 seconds and then leave a message in the unavailable greeting for 'whatever' then hangup That leaves another problem - retrieving the messages. Sounds like console GUI or web interface would be the only way to do this - since the only way to get connected to the voicemail service is by calling in through the PSTN - since asterisk doesn't "own" any extensions. Do I have this right? 2. Now, a more full-blown home-use scenario. Suppose I DO want to have asterisk run my two-line home phone system, and I obtained the requisite FXS and FXO interfaces - maybe the 2x2 Digium card, or maybe go SIP on my side. Now, I'm as much a hobbyist as anyone... but my wife and kids aren't. There's no way I'm going to run a PBX at home if anyone except me actually has to treat it like one, at least for basic features, like placing a phone call. So... Is it in principle possible to create a dialplan that allows prefix-free dialing to an outside line, and move all the "PBX-like" features behind some special prefix? i.e. recognize 3, 7 and 11 digit numbers as phone numbers and dial them without further ado, and put voicemail and every other PBX-ish feature behind, say "#"? this really isn't this complex. I taught my mother how to dial '9' and she bitched for about a month until she started making free calls to all of her friends all over the world. They will need to have an "aha moment" where they realize the power of the system. Sell the kids on personalized voicemails for them etc. crap like that. Kids will love it, and you will never have to take messages for them ever again. [default] Include=home_extensions Include=local Include=long_distance [home_extensions] Include=default Exten => 1000,1,... ;dial 1000,1001 etc Exten=9999,1,voicemailmain(${CALLERIDNUM}@home_vmbox_context ;dial 9999 for voicemail retrieval, leave out a pin in voicemail.conf to make it easy [local] Exten=_NXXXXXX,1,Dial(zap/outgoing channel/${EXTEN}) [long_distance] Exten=_1NXXNXXXXXX,1,Dial(zap/outgoing channel/${EXTEN}) Note that I haven't done the first example but the second one is duck soup. Jason Kawakami www.optellabs.com Salt Lake City, UT
Free long distance? What allows the free long distance? Personalized voicemail? Is that accomplised wiht a single line? I guess this is done by the voicemail picking up and the caller having to go through a menu to get to the right VM. Something like "Press 1 to get dad. Press 2 to get Mom. Press 3 to get kid 1." Is this right? On Mon, 31 Jan 2005 16:44:55 -0700, Jason Kawakami <jkkawakami@optellabs.com> wrote:> > > -----Original Message----- > <snip> > > Is this possible with asterisk? Anyone have a sample dialplan? > > -other than the problem outlined below I would try something like > > S,1,wait(20) > S,2,voicemail(uwhatever) > S,3,hangup > > That should ignore the call for 20 seconds and then leave a message in the > unavailable greeting for 'whatever' then hangup > > That leaves another problem - retrieving the messages. Sounds > like console GUI or web interface would be the only way to do this - > since the only way to get connected to the voicemail service > is by calling in through the PSTN - since asterisk doesn't "own" > any extensions. Do I have this right? > > 2. Now, a more full-blown home-use scenario. > > Suppose I DO want to have asterisk run my two-line home > phone system, and I obtained the requisite FXS and FXO > interfaces - maybe the 2x2 Digium card, or maybe go SIP > on my side. > > Now, I'm as much a hobbyist as anyone... but my wife and kids > aren't. There's no way I'm going to run a PBX at home if anyone > except me actually has to treat it like one, at least for basic > features, like placing a phone call. > > So... > > Is it in principle possible to create a dialplan that allows > prefix-free dialing to an outside line, and move all the > "PBX-like" features behind some special prefix? > > i.e. recognize 3, 7 and 11 digit numbers as phone numbers > and dial them without further ado, and put voicemail and > every other PBX-ish feature behind, say "#"? > > this really isn't this complex. I taught my mother how to dial '9' and she > bitched for about a month until she started making free calls to all of her > friends all over the world. They will need to have an "aha moment" where > they realize the power of the system. Sell the kids on personalized > voicemails for them etc. crap like that. Kids will love it, and you will > never have to take messages for them ever again. > > [default] > Include=home_extensions > Include=local > Include=long_distance > > [home_extensions] > > Include=default > Exten => 1000,1,... ;dial 1000,1001 etc > > Exten=9999,1,voicemailmain(${CALLERIDNUM}@home_vmbox_context ;dial 9999 > for voicemail retrieval, leave out a pin in voicemail.conf to make it easy > > [local] > > Exten=_NXXXXXX,1,Dial(zap/outgoing channel/${EXTEN}) > > [long_distance] > > Exten=_1NXXNXXXXXX,1,Dial(zap/outgoing channel/${EXTEN}) > > Note that I haven't done the first example but the second one is duck soup. > > Jason Kawakami > www.optellabs.com > Salt Lake City, UT > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Wolfgang S. Rupprecht
2005-Jan-31 17:22 UTC
[Asterisk-Users] RE: Answering Machine Function?
jkkawakami@optellabs.com (Jason Kawakami) writes:> Is it in principle possible to create a dialplan that allows > prefix-free dialing to an outside line, and move all the > "PBX-like" features behind some special prefix? > > i.e. recognize 3, 7 and 11 digit numbers as phone numbers > and dial them without further ado, and put voicemail and > every other PBX-ish feature behind, say "#"?I don't know if you even need to work that hard to hide the pbx numbers. I just grab 6XXX as pbx-local numbers and pass all the rest to the outside world. The slight downside is that if someone is dialing a 7-digit or 10-digit outside number that starts with "6" and they dither a bit after dialing 4 digits, it will end up calling the corresponding inside number. That hasn't been a problem in practice. -wolfgang -- Wolfgang S. Rupprecht http://www.wsrcc.com/wolfgang/ Hate software patents? Sign here: http://thankpoland.info/
On Mon, January 31, 2005 6:44 pm, Jason Kawakami said:> Is it in principle possible to create a dialplan that allows > prefix-free dialing to an outside line, and move all the > "PBX-like" features behind some special prefix? > > i.e. recognize 3, 7 and 11 digit numbers as phone numbers > and dial them without further ado, and put voicemail and > every other PBX-ish feature behind, say "#"? > > this really isn't this complex. I taught my mother how to dial '9'...The only hitch I've found with making a dial-plan that "just works" like you're thinking (i.e. with or without the 9, areacodes where 10 digits are required, prepending 1 to 10-digit numbers, etc.) is the need for a timeout. I've got something like below here at my house in Atlanta where we do 10-digit local dialing. If I dial 800 (the voicemail extension) on a Zap station, I need to wait a few seconds for the channel to stopp looking for more digits before it decides the choose 800 over waiting for the rest of a toll-free 10-digit number. You can dial a # to force it to proceed if you don't want to wait. That said, IMHO, getting the gang here to press # or know to wait a few seconds was kinder and gentler than making them dial 9. Paul -- My Pseudo Outbound DialPlan: 911 -> Emergency 0 -> BellSouth Operator 411 -> BellSouth Info _9NXXXXXX -> forced analog call, prepend local area code _9NXXNXXXXXX -> forced analog call _91NXXNXXXXXX -> forced analog call _8NXXXXXX -> forced VoIP call, prepend local area code _8NXXNXXXXXX -> forced VoIP call _81NXXNXXXXXX -> forced VoIP call _NXXXXXX -> prefer analog, fallback to VoIP, call, prepend area code _770NXXXXXX -> 770 is local, prefer analog _1770NXXXXXX -> 770 is local, remove leading 1, prefer analog _678NXXXXXX -> 678 is local, prefer analog _1678NXXXXXX -> 678 is local, remove leading 1, prefer analog _404NXXXXXX -> 404 is local, prefer analog _1404NXXXXXX -> 404 is local, remove leading 1, prefer analog _888NXXXXXX -> 888 is free, add leading 1, prefer analog _1888NXXXXXX -> 404 is local, prefer analog (same for other toll-free, 877, 866, 855, 800) _900NXXXXXX -> block these _1900NXXXXXX -> block there _976NXXXXXX -> block these _1976NXXXXXX -> block there _NXXNXXXXXX -> long distance, prefer VoIP _1NXXNXXXXXX -> long distance, prefer VoIP _011. -> international, force VoIP _1XX -> internal extensions _8XX -> internal apps (voicemail, time/temp, etc.) -- Paul A. Dugas Dugas Enterprises, LLC paul@dugasenterprises.com 1711 Indian Ridge Drive p:404-932-1355 f:770-516-4841 Woodstock, GA 30189-6856 USA
> Is this possible with asterisk? Anyone have a sample dialplan? > >-other than the problem outlined below I would try something like > >S,1,wait(20) >S,2,voicemail(uwhatever) >S,3,hangup > >One issue I ran into with using * as an answering machine is that it can't just share a line with other phones. My first attempt at making an "Asterisk Answering Machine" was similiar to your approach above. However, * would _always_ answer the phone after 20 seconds, even if another phone on the line was picked up. I'd love to see a work-around for this other than "get a FXS card." FXO cards are cheap, FXS cards are not. This isn't an issue for business uses. This is an issue for people who want to try out asterisk on a POTS line, but share that POTS line with other people. Even if someone did get an FXS card AND an FXO card, "other people" who share the line are NOT likely to be very tolerant of dial plan errors, server problems, etc. This is an important issue for the asterisk community becuase it addresses how new users and new developers can start working with asterisk. There is no reason that "Carrier Grade" software can't /also/ be easy for a home user to setup and use. cheers, glenn
Jason is right, it's certainly possible. I've got my home setup (single land PSTN line) as a full pbx system with a fiance that would never tolerate any of my "nerd" setups. My setup is fully transparent to her using a Sipura 2000 (2 fxs ports for our separate lines attached to 2 different portable phones) and an Digium FXO card (1 port). By using distinct ring detection offered by Qwest with 2 phone numbers inbound, the main Qwest DID rings both fxs lines, but her Qwest distinctive ring DID saves me from getting up to answer her mother's daily call :) I have no prefix dialing codes, except for forcing my local Qwest line to dial long distance, which I only use for testing my inbound 800 numbers via the PSTN. If a VoIP provider is down or not working, it rolls the dialout to the next available VoIP provider or Qwest (yes, get more than one) I've also a sipura desk phone (SPA-841) that I use as my office phone. This shows 2 line presence for the Qwest inbound/outbound, as well as VOIP out/in via both NuFone & VoIPjet. I have 2 inbound VoIP business DIDs via NuFone.com that are routed directly to my Sipura-841. On top of this I have about 8 friends connected via SIP helping test my system. A few are out of state and one is in Kobe, Japan (took him a BudgetPhone 100 while visiting last spring) These users can dialout via my VoIP plans and get inbound via NuFone toll free numbers and of course dial via direct extension. (they have no access to the Qwest line) This is basically like a spread out office scenario and the VoIP outbound offering to the users is cheap development feedback for the $$$. Combined they don't use more than $15 a month. My Dialplan routes all in house calls that are local to QWest, unless it's occupied, then routes via VoIPjet.com or NuFone.net. Using call busy forwarding offered by QWest (0.38 cents a month) if the QWest line is busy, it forwards to a DID provided by NuFone to an unbusy inhouse extension. (note: distinctive ring is lost by the forward, but that's ok, that's where CallerID comes in, I just have to get up now ;) ) So you can have a shared PBX setup, kids and all, that's transparent, you just need to remove or rewire your phones to sit behind the PBX, not laterally. Let the PBX do it's job. The dialplans are a bit voluminous to go through right now, but with enough reading (voip-info.org of course) and testing, it's certainly possible.... Jason, I too am in SLC. Despite our apparent competition (or soon to be) in our local market, the spirit of open standards don't end at Asterisk. Perhaps you'd be willing to meet for coffee/beer/soda sometime and discuss setups and/or some local biz talk. Drop me an email if you'd like to do so. -Bryan On Mon, 31 Jan 2005 16:44:55 -0700, Jason Kawakami <jkkawakami@optellabs.com> wrote:> > > -----Original Message----- > <snip> > > Is this possible with asterisk? Anyone have a sample dialplan? > > -other than the problem outlined below I would try something like > > S,1,wait(20) > S,2,voicemail(uwhatever) > S,3,hangup > > That should ignore the call for 20 seconds and then leave a message in the > unavailable greeting for 'whatever' then hangup > > That leaves another problem - retrieving the messages. Sounds > like console GUI or web interface would be the only way to do this - > since the only way to get connected to the voicemail service > is by calling in through the PSTN - since asterisk doesn't "own" > any extensions. Do I have this right? > > 2. Now, a more full-blown home-use scenario. > > Suppose I DO want to have asterisk run my two-line home > phone system, and I obtained the requisite FXS and FXO > interfaces - maybe the 2x2 Digium card, or maybe go SIP > on my side. > > Now, I'm as much a hobbyist as anyone... but my wife and kids > aren't. There's no way I'm going to run a PBX at home if anyone > except me actually has to treat it like one, at least for basic > features, like placing a phone call. > > So... > > Is it in principle possible to create a dialplan that allows > prefix-free dialing to an outside line, and move all the > "PBX-like" features behind some special prefix? > > i.e. recognize 3, 7 and 11 digit numbers as phone numbers > and dial them without further ado, and put voicemail and > every other PBX-ish feature behind, say "#"? > > this really isn't this complex. I taught my mother how to dial '9' and she > bitched for about a month until she started making free calls to all of her > friends all over the world. They will need to have an "aha moment" where > they realize the power of the system. Sell the kids on personalized > voicemails for them etc. crap like that. Kids will love it, and you will > never have to take messages for them ever again. > > [default] > Include=home_extensions > Include=local > Include=long_distance > > [home_extensions] > > Include=default > Exten => 1000,1,... ;dial 1000,1001 etc > > Exten=9999,1,voicemailmain(${CALLERIDNUM}@home_vmbox_context ;dial 9999 > for voicemail retrieval, leave out a pin in voicemail.conf to make it easy > > [local] > > Exten=_NXXXXXX,1,Dial(zap/outgoing channel/${EXTEN}) > > [long_distance] > > Exten=_1NXXNXXXXXX,1,Dial(zap/outgoing channel/${EXTEN}) > > Note that I haven't done the first example but the second one is duck soup. > > Jason Kawakami > www.optellabs.com > Salt Lake City, UT > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >