Displaying 1 result from an estimated 1 matches for "smarttcom".
Did you mean:
smartcom
2004 Apr 18
0
AGI Module
...3102,2,AGI,agi-SQLTest.agi
exten => 3102,3,Hangup
Agi-SQLTest.agi
---------------
#!/usr/bin/perl
use Asterisk::AGI;
use DBI;
$AGI = new Asterisk::AGI;
# Read * input info.
my %input = $AGI->ReadParse();
# Set SQL server info.
$uid = 'asterisk';
$pwd = 'pbx';
$srv = 'SMARTTCom';
# Print variables for debugging.
$AGI->verbose("AGI Environment Dump:\n",3);
foreach $i (sort keys %input) {
$AGI->verbose(" -- $i = $input{$i}\n",3);
}
# Connect to server using freetds
$AGI->verbose("Connecting to server: $srv",3);
my $dbh =...