Kingsley Tart
2012-Feb-01 10:34 UTC
[asterisk-users] read digits during recording / DTMF in conference?
Hi, I want to create a system for incoming calls where, under some circumstances, callers get routed straight to voicemail (or some other means of recording a message) but if they enter a valid extension number then the recorded message would be abandoned and they'd be diverted to the extension number they entered. I realise this can be done with the voicemail app with operator=yes but the problem with this is that the caller has to press 0 while the announcement is being played. If they're too slow and recording has started, they've missed the opportunity. So I played around with ConfBridge and a couple of call files, just to see if I could get it to work. It's a bit convoluted but the idea is that the caller gets silently put into a conference, then two call files make asterisk silently connect to other calls into the same conference, with one doing the recording and the other using Read() to collect digits. If I just had the caller and one of the other calls in the conference (the one doing Read()) then this worked - Read() managed to read the DTMF digits and assign them to a variable. However, when the 'recording' call is also in the conference, the 'read' call can no longer recognise the DTMF digits. To test, I made the 'read' call play a sound before calling Read() and I could hear this being played so the call was definitely there. However, regardless of the number of digits I pressed, Read() didn't notice any of them, even if I introduced a delay so that the other channels were quiet before the call to Read(). I realise this might seem a bit like a mad solution but can anyone else think of a way to get Asterisk to read (and react to) DTMF digits during a recording? This is with Asterisk 1.8.7. -- Cheers, Kingsley.
isrlgb at gmail.com
2012-Feb-01 10:45 UTC
[asterisk-users] read digits during recording / DTMF in conference?
M? -----Original Message----- From: Kingsley Tart <kingsley at skymarket.co.uk> Sender: asterisk-users-bounces at lists.digium.com Date: Wed, 01 Feb 2012 10:34:07 To: Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users at lists.digium.com> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: [asterisk-users] read digits during recording / DTMF in conference? Hi, I want to create a system for incoming calls where, under some circumstances, callers get routed straight to voicemail (or some other means of recording a message) but if they enter a valid extension number then the recorded message would be abandoned and they'd be diverted to the extension number they entered. I realise this can be done with the voicemail app with operator=yes but the problem with this is that the caller has to press 0 while the announcement is being played. If they're too slow and recording has started, they've missed the opportunity. So I played around with ConfBridge and a couple of call files, just to see if I could get it to work. It's a bit convoluted but the idea is that the caller gets silently put into a conference, then two call files make asterisk silently connect to other calls into the same conference, with one doing the recording and the other using Read() to collect digits. If I just had the caller and one of the other calls in the conference (the one doing Read()) then this worked - Read() managed to read the DTMF digits and assign them to a variable. However, when the 'recording' call is also in the conference, the 'read' call can no longer recognise the DTMF digits. To test, I made the 'read' call play a sound before calling Read() and I could hear this being played so the call was definitely there. However, regardless of the number of digits I pressed, Read() didn't notice any of them, even if I introduced a delay so that the other channels were quiet before the call to Read(). I realise this might seem a bit like a mad solution but can anyone else think of a way to get Asterisk to read (and react to) DTMF digits during a recording? This is with Asterisk 1.8.7. -- Cheers, Kingsley. -- _____________________________________________________________________ -- 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
virendra bhati
2012-Feb-02 12:43 UTC
[asterisk-users] read digits during recording / DTMF in conference?
You may used even capturing in the case... when call is recoding in conference On Wed, Feb 1, 2012 at 4:04 PM, Kingsley Tart <kingsley at skymarket.co.uk>wrote:> Hi, > > I want to create a system for incoming calls where, under some > circumstances, callers get routed straight to voicemail (or some other > means of recording a message) but if they enter a valid extension number > then the recorded message would be abandoned and they'd be diverted to > the extension number they entered. > > I realise this can be done with the voicemail app with operator=yes but > the problem with this is that the caller has to press 0 while the > announcement is being played. If they're too slow and recording has > started, they've missed the opportunity. > > So I played around with ConfBridge and a couple of call files, just to > see if I could get it to work. It's a bit convoluted but the idea is > that the caller gets silently put into a conference, then two call files > make asterisk silently connect to other calls into the same conference, > with one doing the recording and the other using Read() to collect > digits. > > If I just had the caller and one of the other calls in the conference > (the one doing Read()) then this worked - Read() managed to read the > DTMF digits and assign them to a variable. > > However, when the 'recording' call is also in the conference, the 'read' > call can no longer recognise the DTMF digits. To test, I made the 'read' > call play a sound before calling Read() and I could hear this being > played so the call was definitely there. However, regardless of the > number of digits I pressed, Read() didn't notice any of them, even if I > introduced a delay so that the other channels were quiet before the call > to Read(). > > I realise this might seem a bit like a mad solution but can anyone else > think of a way to get Asterisk to read (and react to) DTMF digits during > a recording? > > This is with Asterisk 1.8.7. > > -- > Cheers, > Kingsley. > > > -- > _____________________________________________________________________ > -- 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 >-- Thanks and regards Virendra Bhati +91-8885268942 Software Engineer E-mail-: virbhati at gmail.com Skype id:- virbhati2 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120202/d5d4d6bd/attachment-0001.htm>