Hi, I'm trying to implement a Voice Drop service within Asterisk dial-plan. The service is supposed to work as following: 1. A initiates a call to B 2. The call is answered by B's answering machine 3. A hears the answering machine's greeting and the recording beep 4. A speaks a few words into the recording to personalize the message 5. A presses some DTMF keys (say, '##') to initiate Voice Drop 6. PBX intercepts DTMF and starts playing a prerecorded announcement to B 7. A is released from the call as soon as the Voice Drop is initiated 8. PBX releases the call to B at the end of the announcement To acheive this I need to intercept DTMF in the middle of a call and initiate an action based on that. I couldn't find an option in the Dial() application to break out of it on receipt of a particular DTMF sequence. Does the Dial() application support such a capability? I've tried the 'G' option in the Dial() application but that splits the call as soon as it is answered, whereas, I need to split the call after it is established based on a DTMF stimulus. Are there any other ways of accomplishing this goal? Any thoughts, ideas? Thank you, Raj Jain mailto:rj2807 at gmail dot com sip:rjain at iptel dot org
Don Pobanz
2008-Jan-25 16:41 UTC
[asterisk-users] Intercepting DTMF to initiate Voice Drop
From: Raj Jain - Friday, January 25, 2008 10:07 AM> I'm trying to implement a Voice Drop service within Asterisk > dial-plan. The service is supposed to work as following: > > 1. A initiates a call to B > 2. The call is answered by B's answering machine > 3. A hears the answering machine's greeting and the recording beep > 4. A speaks a few words into the recording to personalize the message > 5. A presses some DTMF keys (say, '##') to initiate Voice Drop > 6. PBX intercepts DTMF and starts playing a prerecorded > announcement to B > 7. A is released from the call as soon as the Voice Drop is initiated > 8. PBX releases the call to B at the end of the announcement > > Any thoughts, ideas?After talking with B, A could transfer the call to an extension such as 123 with a dial plan something like: Exten => 123,1,Playback(file) Exten => 123,n,Playback(file) Exten => 123,n,hangup A will need to be able to transfer outgoing calls ('T' option). Don Pobanz
Atis Lezdins
2008-Jan-28 10:41 UTC
[asterisk-users] Intercepting DTMF to initiate Voice Drop
On 1/25/08, Raj Jain <rj2807 at gmail.com> wrote:> Hi, > > I'm trying to implement a Voice Drop service within Asterisk > dial-plan. The service is supposed to work as following: > > 1. A initiates a call to B > 2. The call is answered by B's answering machine > 3. A hears the answering machine's greeting and the recording beep > 4. A speaks a few words into the recording to personalize the message > 5. A presses some DTMF keys (say, '##') to initiate Voice Drop > 6. PBX intercepts DTMF and starts playing a prerecorded announcement to B > 7. A is released from the call as soon as the Voice Drop is initiated > 8. PBX releases the call to B at the end of the announcement > > > To acheive this I need to intercept DTMF in the middle of a call and > initiate an action based on that. I couldn't find an option in the > Dial() application to break out of it on receipt of a particular DTMF > sequence. Does the Dial() application support such a capability? > > I've tried the 'G' option in the Dial() application but that splits > the call as soon as it is answered, whereas, I need to split the call > after it is established based on a DTMF stimulus. Are there any other > ways of accomplishing this goal? > > Any thoughts, ideas? > > Thank you,You should take a look at this: http://www.voip-info.org/wiki-Asterisk+config+features.conf See the applicationmap section. It should allow you to execute something upon keypress. Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. atis at iq-labs.net Skype: atis.lezdins Cell Phone: +371 28806004 Work phone: +1 800 7502835