On Wed, Feb 10, 2010 at 04:26:48AM -0500, Steve Totaro wrote:
[snip]
> > my $data0= $ARGV[0];
> > my $data1= $ARGV[1];
> > my $data2= $ARGV[2];
> > my $data3= $ARGV[3];
> > my $data4= $ARGV[4];
> > my $data5= $ARGV[5];
> > my $data6= $ARGV[6];
> > my $data7= $ARGV[7];
[snip]
> >
> > my $insert_str = "insert into $mysql_table (calldate, language, src,
> > duration, accountcode, uniqueid, currentmenu, nextmenu) values
> > (\"$data0\", \"$data1\", \"$data2\", \"$data3\", \"$data4\", \"$data5\",
> > \"$data6\", \"$data7\");\n";
> > $sth = $dbh->prepare($insert_str);
> > $sth->execute();
> If I were you, and I am not and never will be, I would move over to
> fastagi and offload all that Perl and database stuff off to a
> designated server just to handle that stuff.
Or, in the case of such a simple AGI, use the MySQL app from addons.
Alternatively, can the CDR mechnism be (ab?)used to record this
information?
--
Tzafrir Cohen
icq#16849755 jabber:[email protected]
+972-50-7952406 mailto:[email protected]
http://www.xorcom.com iax:[email protected]/tzafrir
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users