[Asterisk-Users] Problem with $AGI->record_file for CVS-HEAD-10/18/04

Darren Sessions dsessions at ionosphere.net
Thu Oct 21 09:00:44 MST 2004


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
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list