<div dir="ltr"><div>Hi Steve,</div><div><br></div><div>Thank you very much for that information. The result is the key in ascii perfectly!</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 7 Jun 2019 at 18:05, Steve Edwards <<a href="mailto:asterisk.org@sedwards.com">asterisk.org@sedwards.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, 7 Jun 2019, David Cunningham wrote:<br>
<br>
> We're using Perl and so far I haven't found an equivalent there.<br>
<br>
On Thu, 6 Jun 2019, Steve Edwards wrote:<br>
<br>
> I'm not much of a Perl programmer...<br>
<br>
But you should never turn down an opportunity to develop your skills :)<br>
<br>
Try something like:<br>
<br>
         my $result = $AGI->record_file(<br>
                   '/tmp/foo'            # filename<br>
                 , 'wav'                 # format<br>
                 , '#*0123456789'        # escape digits<br>
                 , '5000'                # timeout<br>
                 );<br>
         $AGI->verbose('result =  ' . $result, 0);<br>
<br>
Which results in:<br>
<br>
<SIP/192.168.0.31-00000060>AGI Rx << RECORD FILE /tmp/foo wav #*0123456789 5000<br>
<SIP/192.168.0.31-00000060>AGI Tx >> 200 result=50 (dtmf) endpos=0<br>
<SIP/192.168.0.31-00000060>AGI Rx << VERBOSE "result =  50"<br>
<br>
when '2' is pressed.<br>
<br>
-- <br>
Thanks in advance,<br>
-------------------------------------------------------------------------<br>
Steve Edwards       <a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a>      Voice: +1-760-468-3867 PST<br>
             <a href="https://www.linkedin.com/in/steve-edwards-4244281" rel="noreferrer" target="_blank">https://www.linkedin.com/in/steve-edwards-4244281</a><br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>David Cunningham, Voisonics Limited<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>USA: +1 213 221 1092<br>New Zealand: +64 (0)28 2558 3782</div></div></div></div></div></div></div></div></div></div></div>