Does the -EXACT- same thing if I do a straight print on the record command.

$rc = print STDOUT "RECORD FILE tmp_msgs/$sessionId wav #*0 70000";


On Oct 21, 2004, at 11:00 AM, Darren Sessions wrote:

When I execute the following AGI command in *, if the caller hangs up during the "record" - it fails to run the callback sub -BUT- during any other portion of the call, if the caller hangs up then it gets called just fine.

Here are some code excerpts:

use Asterisk::AGI;
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
$AGI->setcallback(\&mycallback);
...
$AGI->stream_file("beep");
$rc = $AGI->record_file("tmp_msgs/$sessionId", 'wav', '#*0', 70000, 1);
...
sub mycallback {
  my ($returncode) = @_;
  print STDERR "User Hungup ($returncode)\n";
  exit($returncode);
}

Like I said - worked before. I'm going to update to the latest CVS and see if that fixes it.

Any ideas would be appreciated.

Thanks,

 - Darren

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to