[Asterisk-Users] AGI->Exec Problem

Tom Daly tomdaly at gmail.com
Mon Jun 28 07:35:08 MST 2004


Hello,
I am having some trouble with the Asterisk::AGI perl library. It seems
that the AGI->Exec() command is causing me a problem.

Here's the line in my AGI code: $AGI->exec('Record',"$vmfile:wav, 30");

I'm trying to record voicemail to the file name stored in $vmfile with
a silence timeout of 30. However, this is not being parse by AGI or
Asterisk correctly, since I get the following output from debug level
5:

  -- AGI Script Executing Application: (Record)
Options:(/tmp/asterisk/incident-3893006535:wav,)
  -- Playing 'beep' (language 'en')
Jun 22 13:53:06 WARNING[1209214400]: file.c:856 ast_writefile: No such
format 'wav,'
Jun 22 13:53:06 WARNING[1209214400]: app_record.c:221 record_exec:
Could not create file /tmp/asterisk/incident-3893006535
Jun 22 13:53:08 WARNING[1209214400]: file.c:464 ast_openstream: File
/tmp/asterisk/incident-3893006535 does not exist in any format
Jun 22 13:53:08 WARNING[1209214400]: app_agi.c:336 handle_streamfile:
Unable to open /tmp/asterisk/incident-3893006535
== Spawn extension (default, s, 3) exited non-zero on 'Zap/1-1'
  -- Hungup 'Zap/1-1'

Any ideas on how to make AGI parse this arguement correctly?

Thanks,
Tom Daly



More information about the asterisk-users mailing list