Re: [asterisk-users] Find out which key ended recording?

2019-06-09 Thread David Cunningham
Hi Steve, Thank you very much for that information. The result is the key in ascii perfectly! On Fri, 7 Jun 2019 at 18:05, Steve Edwards wrote: > On Fri, 7 Jun 2019, David Cunningham wrote: > > > We're using Perl and so far I haven't found an equivalent there. > > On Thu, 6 Jun 2019, Steve

Re: [asterisk-users] Find out which key ended recording?

2019-06-07 Thread Steve Edwards
On Fri, 7 Jun 2019, David Cunningham wrote: We're using Perl and so far I haven't found an equivalent there. On Thu, 6 Jun 2019, Steve Edwards wrote: I'm not much of a Perl programmer... But you should never turn down an opportunity to develop your skills :) Try something like:

Re: [asterisk-users] Find out which key ended recording?

2019-06-07 Thread Steve Edwards
On Fri, 7 Jun 2019, David Cunningham wrote: What language is that please? C. We're using Perl and so far I haven't found an equivalent there. I'm not much of a Perl programmer, but I'd guess something like: $AGI->result or $AGI->lastresult might yield clues. -- Thanks

Re: [asterisk-users] Find out which key ended recording?

2019-06-07 Thread Steve Edwards
On Fri, 7 Jun 2019, David Cunningham wrote: We're using Perl and so far I haven't found an equivalent there. On Thu, 6 Jun 2019, Steve Edwards wrote: I'm not much of a Perl programmer... But you should never turn down an opportunity to develop your skills :) Try something like:

Re: [asterisk-users] Find out which key ended recording?

2019-06-06 Thread David Cunningham
Hi Steve, What language is that please? We're using Perl and so far I haven't found an equivalent there. Thanks for your help. On Fri, 7 Jun 2019 at 12:10, Steve Edwards wrote: > On Fri, 7 Jun 2019, David Cunningham wrote: > > > We have a need to record audio and allow the user to press any

Re: [asterisk-users] Find out which key ended recording?

2019-06-06 Thread Steve Edwards
On Fri, 7 Jun 2019, David Cunningham wrote: We have a need to record audio and allow the user to press any DTMF key to end the recording. Currently we're using the AGI command "record file" which does allow us to specify which DTMF keys can end the recording. However we also need to know

[asterisk-users] Find out which key ended recording?

2019-06-06 Thread David Cunningham
Hello, We have a need to record audio and allow the user to press any DTMF key to end the recording. Currently we're using the AGI command "record file" which does allow us to specify which DTMF keys can end the recording. However we also need to know *which* key actually ended the recording.