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: kflem...@digium.com
Check us out at www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to