[asterisk-users] Find out which key ended recording?
David Cunningham
dcunningham at voisonics.com
Sun Jun 9 23:28:08 CDT 2019
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 <asterisk.org at sedwards.com>
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 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:
>
> my $result = $AGI->record_file(
> '/tmp/foo' # filename
> , 'wav' # format
> , '#*0123456789' # escape digits
> , '5000' # timeout
> );
> $AGI->verbose('result = ' . $result, 0);
>
> Which results in:
>
> <SIP/192.168.0.31-00000060>AGI Rx << RECORD FILE /tmp/foo wav #*0123456789
> 5000
> <SIP/192.168.0.31-00000060>AGI Tx >> 200 result=50 (dtmf) endpos=0
> <SIP/192.168.0.31-00000060>AGI Rx << VERBOSE "result = 50"
>
> when '2' is pressed.
>
> --
> Thanks in advance,
> -------------------------------------------------------------------------
> Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
> https://www.linkedin.com/in/steve-edwards-4244281
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
> https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
David Cunningham, Voisonics Limited
http://voisonics.com/
USA: +1 213 221 1092
New Zealand: +64 (0)28 2558 3782
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190610/eb0033b4/attachment.html>
More information about the asterisk-users
mailing list