[Asterisk-Users] How do i configure so an incoming call triggers an http request?

Alastair Maw asterisk at almaw.com
Wed Aug 13 03:59:50 MST 2003


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 <al.maw at mxtelecom.com>
MX Telecom - Systems Analyst
http://www.mxtelecom.com




More information about the asterisk-users mailing list