Jeff Johnson
2010-Mar-29 22:42 UTC
[asterisk-users] Trying to get reason for ending of AGI call recording
I would appreciate any ideas of what I'm doing wrong on this. My dialplan calls an AGI which records a file. That works, but I'm trying to find a way to determine whether the caller pressed # to stop a recording before the maxtime expired, or if the recording ended due to reaching the max timeout. The $fx variable in the below agi excerpt always returns 0. $res = $agi->exec('Record', "$filename.gsm||$maxtime"); $fx = $res['result']; Thanks, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100329/f523bbfe/attachment.htm
Steve Edwards
2010-Mar-30 00:04 UTC
[asterisk-users] Trying to get reason for ending of AGI call recording
On Mon, 29 Mar 2010, Jeff Johnson wrote:> I would appreciate any ideas of what I?m doing wrong on this.? ?My > dialplan calls an AGI which records a file.? That works, but I?m trying > to find a way to determine whether the caller pressed # to stop a > recording before the maxtime expired, or if the recording ended due to > reaching the max timeout.? The $fx variable in the below agi excerpt > always returns 0. > > $res = $agi->exec('Record', "$filename.gsm||$maxtime"); > > $fx = $res['result'];Try using the AGI command "record file" instead of the "application record()." I get a valid 'result' :) -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000