Can Asterisk be configured to hang up if another phone picks up? I'm a bit lost as far as terminology goes, but here's my setup. At home, I have asterisk answering calls from the pstn and sending them through to a sip extension or voicemail. All that is working fine. The box running Asterisk isn't on 24/7 so I have a secondary phone connected to the line as well. If Asterisk is not running, I can answer an incoming call from that phone. If asterisk is running, I can answer the call from a sip extension. Can I have it both ways? Can Asterisk back off if the secondary phone answers the call? Currently, if a call comes in and I answer it from the secondary phone Asterisk will continue to ring the sip extension and eventually drop into voicemail.
Short answer - no. Leave the box on 24/7, and run the POTS phone through an ATA, or another SIP phone. If power consumption and wear and tear is a consideration, use AstLinux on a thin client, and reduce your power consumption to under 30 Watts. John Novack Bill Lovett wrote:> Can Asterisk be configured to hang up if another phone picks up? > > I'm a bit lost as far as terminology goes, but here's my setup. At > home, I have asterisk answering calls from the pstn and sending them > through to a sip extension or voicemail. All that is working fine. > > The box running Asterisk isn't on 24/7 so I have a secondary phone > connected to the line as well. If Asterisk is not running, I can > answer an incoming call from that phone. If asterisk is running, I can > answer the call from a sip extension. > > Can I have it both ways? Can Asterisk back off if the secondary phone > answers the call? Currently, if a call comes in and I answer it from > the secondary phone Asterisk will continue to ring the sip extension > and eventually drop into voicemail. > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-- Dog is my co-pilot
Bill Lovett wrote:> >Can Asterisk be configured to hang up if another phone picks up? > >I'm a bit lost as far as terminology goes, but here's my setup. At >home, I have asterisk answering calls from the pstn and sending them >through to a sip extension or voicemail. All that is working fine. > >The box running Asterisk isn't on 24/7 so I have a secondary phone >connected to the line as well. If Asterisk is not running, I can >answer an incoming call from that phone. If asterisk is running, I can >answer the call from a sip extension. > >Can I have it both ways? Can Asterisk back off if the secondary phone >answers the call? Currently, if a call comes in and I answer it from >the secondary phone Asterisk will continue to ring the sip extension >and eventually drop into voicemail.Asterisk is a PBX, not an answering machine, so I would advise against this. It would be best to have Asterisk handle the phone line exclusively, 24/7. However, with that said, it is possible to accomplish what you are asking. Placing a telephone privacy/exclusion adapter on the line cord into Asterisk will cut off the phone line whenever a parallel telephone on the same line is picked up. This means that the instant you pick up any other phone on the line, it would cut off the line to Asterisk. Radio Shack used to sell a couple varieties of these. One was a two-way adapter with one side for "phone" and the other "answering machine". You do not need to plug anything into the "phone" side for the device to work. The second device was just an inline exclusion device. I was unable to find these at Radio Shack's website. However, I found something similar at the following URLs: (See SER2A, SER2D, and SER3P at Sandman.com) http://www.sandman.com/lineshar.html http://www.trianglecables.com/telanmacorph.html http://www.iec-usa.com/cgi-bin/iec/COM9928 http://www.iec-usa.com/cgi-bin/iec/COM0006 Good luck! Sincerely, Trevor Hammonds
Shorter answer is yes :-). This is exactly how mine runs. The "secret" is that the copper interface will ring a SIP extension but just exit from the dialplan on noanswer. [main-copper] exten => s,1,Dial(SIP/22,69) and then nothing in my case. Generally my wife answers using a cordless phone set that is "sharing" the copper line with my Asterisk line card. The other benefit is that I actually parse caller-id name and number and optionally have Asterisk answer and torture telemarketers if there is a match. Otherwise it just rings my SIP extensions and will not seize the line unless I pickup extension 22. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090723/d64b97de/attachment.htm
An exclusion adapter is overkill. My Asterisk line card is the $10 Win modem card that I got from ebay. When you call my copper line, two devices see the inbound ringer: 1. The Uniden 5.8Ghz cordless phone base station that answers 95% of the calls 2. Asterisk with a win modem line card that: a. runs a perl AGI script to parse caller-id name and number b. rings a sip extension or c. answers the call and plays funny messages and DTMF tones at the telemarketers. Just make sure that Asterisk only RINGS the sip extensions but never sends the call to play a message or voicemail or any other Asterisk feature that will issue an implicit Answer and take the call. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090723/2f798529/attachment.htm
On Thu, Jul 23, 2009 at 8:58 PM, Tom Browning <ttbrowning at gmail.com> wrote:> > An exclusion adapter is overkill. My Asterisk line card is the $10 Win > modem card that I got from ebay. > > When you call my copper line, two devices see the inbound ringer: > > 1. The Uniden 5.8Ghz cordless phone base station that answers 95% of the > calls > 2. Asterisk with a win modem line card that: a. runs a perl AGI script to > parse caller-id name and number b. rings a sip extension or c. answers the > call and plays funny messages and DTMF tones at the telemarketers. > > Just make sure that Asterisk only RINGS the sip extensions but never sends > the call to play a message or voicemail or any other Asterisk feature that > will issue an implicit Answer and take the call. >Yeah, except in the OP he mentions that he wants or is at least using Asterisk VM so your solution does not meet his needs. @~$7 for the privacy adaptor does not seem like overkill to me, at least price wise. Easy solution so OP can "Can I have it both ways" -- Thanks, Steve Totaro +18887771888 (Toll Free) +12409381212 (Cell) +12024369784 (Skype) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090723/b7bec4bb/attachment.htm
> The box running Asterisk isn't on 24/7 so I have a secondary phone > connected to the line as well. If Asterisk is not running, I can > answer an incoming call from that phone. If asterisk is running, I can > answer the call from a sip extension. > > Can I have it both ways? Can Asterisk back off if the secondary phone > answers the call? Currently, if a call comes in and I answer it from > the secondary phone Asterisk will continue to ring the sip extension > and eventually drop into voicemail.You don't say how your Asterisk is currently connected to the PSTN line. Running Asterisk 24/7 would probably be the simplest. If adding some hardware is an option, it can be done by using an ATA for your secondary phone. Use an ATA that has both an FXO and FXS port, and bridges the two when power is lost. (such as the SPA-3102) You can either do some fancy wiring to power off the ATA when the asterisk box is shut down, or simply use a power bar. (shut down the asterisk box properly before killing it's power....) Normal operation: PSTN line rings, Asterisk sees this and calls the sip extensions, including the sip extension of your secondary phone (via the ATA). The ATA will also see the line ringing on it's FXO port, but is configured to do nothing. Asterisk-off operation: PSTN line rings, asterisk is off so it does nothing, ATA is also off and has automatically bridged PSTN to the secondary phone. This approach also ensures that the secondary phone can still be used in emergencies if the Asterisk box has crashed, or during a power outage (* provided that the secondary phone does not, itself, require power to operate).
> >Yeah, except in the OP he mentions that he wants or is at least using > Asterisk VM so your solution does not meet his needs. > >Ah, yes. My config would not allow Asterisk to be a part time voicemail destination. In my config, the POTS line has its own voicemail (it is actually a Comcast line and Comcast provided voicemail). I need Comcast provided voicemail to be the final destination on that line if noone answers and if the house is totally offline (power or broadband). (Comcast has bigger batteries than I do) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090724/52274e41/attachment.htm