Alastair Maw wrote:
log-call.pl
[...]

oops. I meant: > $sql = "INSERT INTO call (call_from, call_to, add_date) values > ('$clid', '$dnid', FROM_UNIXTIME($add_date));";

not:
$sql = "INSERT INTO call (call_from, call_to, add_date) values ('$myclid', '$mydnid', FROM_UNIXTIME($add_date));";

Also note that you'll need the DBI PEAR module, along with DBD::mssql (if it exists, maybe you should use sybase for MS-SQL instead). You'll also want the Asterisk Perl module (use Asterisk::AGI) , which you can download from here:
- http://asterisk.gnuinter.net/


This link might also be useful:
 - http://home.cogeco.ca/~camstuff/agi.html

--
Alastair Maw <[EMAIL PROTECTED]>
MX Telecom - Systems Analyst
http://www.mxtelecom.com

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to