Hi all, I've got a perl agi script that exec()'s the FFA version of receivefax to... receive a fax. However, after the fax is received, the script seems to die. This is what I have: $main::agi->exec("receivefax","/tmp/${$}.tiff|fs"); $main::agi->verbose("FAX COMPLETE",1); I never see the "FAX COMPLETE" message on the console, I've set verbose to 25.? Any ideas?? I'd like to take the next few instructions to log success/failure. -- Take care and have fun, Mike Diehl. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110218/06883a10/attachment.htm>
On Fri, 18 Feb 2011, Mike Diehl wrote:> I've got a perl agi script that exec()'s the FFA version of receivefax to... receive a fax. > > However, after the fax is received, the script seems to die. > > This is what I have: > > $main::agi->exec("receivefax","/tmp/${$}.tiff|fs"); > $main::agi->verbose("FAX COMPLETE",1); > > I never see the "FAX COMPLETE" message on the console, I've set verbose to 25.? Any ideas?? I'd like to take the next few instructions to log > success/failure.What version of Asterisk? Would enabling AGI debugging on the console shed any light? Any chance receivefax is generating a signal you're not trapping? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
-- Take care and have fun, Mike Diehl.
-- Take care and have fun, Mike Diehl.
On 02/18/2011 07:30 PM, Mike Diehl wrote:> Hi all, > > I've got a perl agi script that exec()'s the FFA version of receivefax > to... receive a fax. > > However, after the fax is received, the script seems to die. > > This is what I have: > > $main::agi->exec("receivefax","/tmp/${$}.tiff|fs"); > $main::agi->verbose("FAX COMPLETE",1); > > I never see the "FAX COMPLETE" message on the console, I've set verbose > to 25. Any ideas? I'd like to take the next few instructions to log > success/failure.Like many Asterisk dialplan applications, ReceiveFAX causes the channel to be hung up when it completes its work. You may have to take special steps to keep your AGI script alive in that situation,,, but someone who knows more about AGI would have to chime in. It would also help if you indicated what version of Asterisk you are using, since there are quite a few and their behavior in this situation could be different. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kfleming at digium.com Check us out at www.digium.com & www.asterisk.org