i personal would prefer a 3cx service like makecall.php that give information about lines or extensions to a cms system.
for example the cms can request someting like this:
callinfo.php?ext=100&pass=8888&requestsubject=100&requestdetail=1
ext=100 (requesting user)
pass=8888 (pass of the requesting user)possible voice pin
requestsubject=100 (the line where the requester want info about) for example ext 100 or line 10000 or queue 800 or ringgroup 820
requestdetail=1 (optional parameter as infofilter if there is no filter all info will be provided)
01= call type ( incomming / outgoing / fax / ect.
02= caller id
04= line where the call comes from or goes to
08= outboundrule used
16= datetime when the call started / duration of the call
32= ect.
if someone need more then one of the info above he can add 01+04+16=21 as requestdetail
this would be nice for all then don´t want to interoperate direct with the database and it would be transparent for updates by 3cx they do to database.
the answer of the 3cx pbx would best in xml
Andy

