Declare the file path before you record it.
$path = "/usr/local/apache/htdocs/demo/sound/myapp.$date.wav";
$AGI->exec('Record',$path:wav");
-----Original Message-----
From: asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com]On Behalf Of AstGrp
Sent: Sunday, May 09, 2004 3:47 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] AGI Assitance
I am trying to figure this out... I'm sure it's simple, but I can't
think of it right now....
In my AGI Script I am doing this... (This is done in Perl)
$AGI->exec('Record',
"/usr/local/apache/htdocs/demo/sound/$EmpNum%d:wav");
And after this is done.. I want to get the name of the file it created
so I can store it in a database.
Any thoughts....
Thanks,
-gcc
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@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