[Asterisk-Users] AGI Assistance

AstGrp astgrp at cwkb.com
Sun May 9 19:39:07 MST 2004


The error was in the Quotes and Date Variable....

The end result looks as follows...

$Date = time();

$Path = "/usr/local/apache/htdocs/demo/sound/$EmpNum.$Date";

$ShortPath = "sound/$EmpNum.$Date";

$AGI->exec('Record', "$Path:wav");

I needed the $ShortPath variable for some web values... But besides
that.... This is what did it for me....

Thanks,

-gcc

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Dean Collins
Posted At: Sunday, May 09, 2004 6:40 PM
Posted To: Asterisk User Group
Conversation: [Asterisk-Users] AGI Assistance
Subject: RE: [Asterisk-Users] AGI Assistance


Can you post your error to the list so we know what was wrong?

Cheers,
Dean


-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of AstGrp
Sent: Monday, 10 May 2004 7:34 AM
To: asterisk-users at lists.digium.com
Subject: RE: [Asterisk-Users] AGI Assistance

Never Mind... Figured it out... Thanks...

-gcc

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Todd
Lieberman Posted At: Sunday, May 09, 2004 4:00 PM Posted To: Asterisk
User Group
Conversation: [Asterisk-Users] AGI Assistance
Subject: RE: [Asterisk-Users] AGI Assistance


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 at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com]On Behalf Of AstGrp
Sent: Sunday, May 09, 2004 3:47 PM
To: asterisk-users at 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 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

_______________________________________________
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
_______________________________________________
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


_______________________________________________
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