[Asterisk-Users] CallerID, TAPI and CTI

Michiel van Baak michiel at vanbaak.info
Mon May 23 12:54:00 MST 2005


On 12:41, Mon 23 May 05, Anton Krall wrote:
> Michiel... Can you explain a bit more how the files on your website work? I
> see they are php agis.
> 

Sure.
The agi script does a lookup in a postgresql database.
It looks in 2 tables, "adres" and "bcards".
bcards are extra contact records for a customer, like
departments or whatever.
It tries to find a match in a couple of fields that hold
phone/fax/cellphone numbers.
When a match comes up, it will write the address id, company
name and call arrival time in a table "active_calls"
Our application then uses this info to display a floating
div with this info.
This info is fetched using the xhttprequest method so no
reloads needed on our webap.
Have fun with it :)

-- 
Michiel van Baak
http://lunteren.vanbaak.info
michiel at vanbaak.info
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D

"Two of the most famous products of Berkeley are LSD and BSD. I don't think that this is a coincidence."




More information about the asterisk-users mailing list