Does anyone know if it is possible to use a manager command to answer an incoming call and not consider it answered unitl it is received. Here is an example, I am deivering a call in the dialplan to a home telephone number. I don't want his voicemail to answer and I have no idea how long it will take to go to their home phone voicemail, but I don't want to deliver the call there, I want it to go to the next priority in asterisk. So I was thinking that it would be nice to build a web interface that they could have a button to answer with. This would send a manager command to the server telling it to answer the channel, any thoughts on how to do this. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3311 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070514/050cf371/attachment.bin
On Mon, 14 May 2007, Jordan Novak wrote:> Does anyone know if it is possible to use a manager command to answer > an incoming call and not consider it answered unitl it is received. > Here is an example, I am deivering a call in the dialplan to a home > telephone number. I don't want his voicemail to answer and I have no > idea how long it will take to go to their home phone voicemail, but I > don't want to deliver the call there, I want it to go to the next > priority in asterisk. So I was thinking that it would be nice to build > a web interface that they could have a button to answer with. This > would send a manager command to the server telling it to answer the > channel, any thoughts on how to do this. >Most companies that I've seen who want this type of behavior have 2 available options. 1) Ask the person with the destination home phone number to cancel their voicemail from the phone company, so that the phone just rings until it times out. Usually they won't want to do this, because other incoming calls to their home number would not go to voicemail then... so unless it's a line dedicated as a home-office number that only receives calls from your system, they won't be happy. 2) The most popular option is have the caller listen to music while waiting, and then when the destination picks up, play an announcement to them and wait for DTMF input. "Hi, you have a call from the PBX system... press 1 to accept this call." If they press 1, you connect the two parties. If after X number of seconds you don't get a response, i.e. voicemail picked up, or their 4 yr old child picked up, then no DTMF will be received and you set it to "time out" and either go on to the next priority or send it to voicemail. As far as I know, there is absolutely no way to prevent the destination's phone company voicemail (or answering machine) from answering the call unless you have a reliable way to know exactly how many rings it is set to before it will answer, AND you have assurance that the number of rings will NOT be changed. Granted, probably 90% or more of all voicemail systems out there default to answer after the 4th or 5th ring, you could always set it to time-out after 3 rings and have decent success rates... but if the caller is already on the phone, unless they have call waiting, the call will go to voicemail on the first ring. I guess theoretically you could always use voicemail detection to see if voicemail answered the call instead of a human, and then somehow grab the call back and transfer it to another extension... but this would probably require a custom Application or modification of the Asterisk source code. If I'm wrong, and there's a better way to do this, someone PLEASE let me know... because I'm planning a project that will have the exact same problem. (That's why I've researched this problem already.) -- Nick
It may not be exactly what you are looking for, but agentcallbacklogin with ackcall=yes requires the # key to be pressed to answer a call from a queue. We use this to avoid the possibility that the call ends up in a cellular or home voicemail. You can set the queued call to ring instead of music. ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jordan Novak Sent: Monday, May 14, 2007 9:45 PM To: asterisk-users@lists.digium.com Subject: Web based call control Does anyone know if it is possible to use a manager command to answer an incoming call and not consider it answered unitl it is received. Here is an example, I am deivering a call in the dialplan to a home telephone number. I don't want his voicemail to answer and I have no idea how long it will take to go to their home phone voicemail, but I don't want to deliver the call there, I want it to go to the next priority in asterisk. So I was thinking that it would be nice to build a web interface that they could have a button to answer with. This would send a manager command to the server telling it to answer the channel, any thoughts on how to do this. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070515/7e808e2b/attachment.htm
There's a better way. Take a look at how to do a "Find me" at http://www.voip-info.org/wiki/view/Asterisk+tips+findme You can have the call only completed when they press a key on the receiving phone. No voicemail will trigger that. Chip Schweiss -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jordan Novak Sent: Monday, May 14, 2007 10:45 PM To: asterisk-users@lists.digium.com Subject: Web based call control Does anyone know if it is possible to use a manager command to answer an incoming call and not consider it answered unitl it is received. Here is an example, I am deivering a call in the dialplan to a home telephone number. I don't want his voicemail to answer and I have no idea how long it will take to go to their home phone voicemail, but I don't want to deliver the call there, I want it to go to the next priority in asterisk. So I was thinking that it would be nice to build a web interface that they could have a button to answer with. This would send a manager command to the server telling it to answer the channel, any thoughts on how to do this. ?