YES Tele.com,
Caller ID Software Experts|
|
|
|
|
|
|
Posting Caller ID Data to a Web SiteWhen you're out of the office, have access to your call data via the Internet.
The Technical DetailsIn the WinLog setup form you can specify when data is posted to the Web. There are 3 options:
You can specify the above options to be enabled or disabled.
To post just Caller ID data check Post Caller ID to Web" and select "Disable" for the "Post End of Call Data" option. When any of the above events occurs, an HTTP call is made via the Windows API. In this example we post to a fictitious site "mySite.com". The POST data is processed by an PHP script named "calls.php". When the call to the Windows API is made, Windows will use the default browser to post the data to the web site. If the browser is not already running Windows will Run the browser. In the WinLog setup you can specify any site and cgi script. The data can be posted to perl, PHP, ASP, ASPX, or any cgi that will accept the data in the standard http post format (&field=data). The following data is posted:
http://www.mySite.com/call.php?ID=4441403&calltime= 3:34pm&calldate=APR 27,2009 &name=YES TELECOM&number=954-344-7665&database=YES Telecom&Index=71826&Type=IN2 &Length=0:01:14&DOW=MON To display the call records, use an URL like this: http://www.yourWebSite.com/LogTable.php?ID=4441403 (ID is Identifier Serial Number) Add &rows=XXX, where XXX= number of records to display: http://www.yourWebSite.com/LogTable.php?ID=4441403&rows=100 For a compact mobile format use: http://www.yourWebSite.com/MobileTable.php?ID=4441403
calltime = Time call began calldate = Date of Call name = Caller ID Name number = Pone Number, Dialed or Caller ID database = Contact Name in record associated with the phone number Type = Type of Call, OUT, IN, or Ring (not answered). IN and Ring are followed by the number of time the phone rang. Length = Length of Call in Hours:Minutes:Seconds DOW = Day of the Week.
Sample PHP ScriptsThe following sample PHP script the process the POST data. The first section e-mails the data. The second section save the data in a text file. The last section save the data to a mySQL database table.
The following PHP script displays the call data in a tabular form.
Click Here for Instructions to the Create SQL Database The following SQL query creates the mySQL table used in the above PHP script.
CREATE TABLE `Calls` ( `id` mediumint(9) NOT NULL default '0', `record` mediumint(9) NOT NULL default '0', `datetime` varchar(36) character set armscii8 NOT NULL default '', `DOW` char(4) character set armscii8 NOT NULL default '', `length` varchar(8) character set armscii8 NOT NULL default '', `calltype` varchar(6) character set armscii8 NOT NULL default '', `number` varchar(16) character set armscii8 default NULL, `name` varchar(15) character set armscii8 default NULL, `database` varchar(32) character set armscii8 default NULL, `Time` varchar(7) character set armscii8 NOT NULL default '', `Date` varchar(12) character set armscii8 NOT NULL default '', KEY `id` (`id`,`record`) ) ENGINE=MyISAM ; |