Page 1 of 2

ID caller - Any experience ?

Posted: Mon Dec 14, 2009 8:42 pm
by Marco Turco
Hi all,
I would like to read from my app the ID caller (telephone number) of an incoming call in order to provide to the customer informations about the caller reading the data from file.

Has anyone experience about this ?
As I know I need to install a modem to check the incoming calls and detect the ID caller (generally the phone provider send the ID caller info after the first ring).

Any sample or other solution about this ?

Thanks in advance

Re: ID caller - Any experience ?

Posted: Tue Dec 15, 2009 1:01 pm
by MarcoBoschi
Marco,
all PBX's provides TCP-IP or RS232 the CGPN.
Are you sure that it is necessary to use a modem?
Best solution is to read what pbx makes available for CDR (Call Detail Records)
Pbx usually makes available the incoming and outgoing calls in real time and then also CGPN available.

marco

Re: ID caller - Any experience ?

Posted: Tue Dec 15, 2009 7:22 pm
by Randal
Marco,

Many modems support caller id. This link may help.

https://secure.mtnsys.com/Pages/howto/htmdmtst.htm

The phone.prg sample that comes with Fivewin would be a good place to start. Basically, you have to send a command string to the modem to turn caller id on and then capture the info as it's sent when the phone call comes in.

Regards,
Randal

Re: ID caller - Any experience ?

Posted: Wed Dec 16, 2009 3:20 pm
by Marco Turco
Hi,
thanks all for the suggest.
I asked for a modem solution because we have more then 5,000 customers so we need a solution that can be used with different pbx,
as I know there isn't a standard to interface a windows app directly to a pbx but any pbx has its standards,
for this reason I think a solution that use an external modem to check the caller ID could be more easy to manage for us.

Re: ID caller - Any experience ?

Posted: Wed Dec 16, 2009 3:46 pm
by MarcoBoschi
Marco,
in my opinion all pbx makes available id caller id.
I did not even know what scenario we are talking about, but maybe you should provide different solutions to interface with several pbx.

In a multiuser (of your app) scenario with a lot of incoming phone calls probably you may lose some incoming calls.

I think the solution to connect a modem is good only for a single telephone and a single user.

Re: ID caller - Any experience ?

Posted: Wed Dec 16, 2009 3:58 pm
by Silvio
I Know Of Ugo Garombo made something of it last two year

Re: ID caller - Any experience ?

Posted: Thu Dec 17, 2009 7:50 am
by Marco Turco
MarcoBoschi wrote:Marco,
in my opinion all pbx makes available id caller id.
I did not even know what scenario we are talking about, but maybe you should provide different solutions to interface with several pbx.

In a multiuser (of your app) scenario with a lot of incoming phone calls probably you may lose some incoming calls.

I think the solution to connect a modem is good only for a single telephone and a single user.
Hi Marco,
I perfectly agree with you
but it is really difficult for us create (and test) a direct connection with any kind of pbx - each with its specific standard - used from our customers.

Marco

Re: ID caller - Any experience ?

Posted: Thu Dec 17, 2009 10:00 am
by Detlef Hoefner
Marco,

you might look at TAPI documentations.
All good pbx systems should provide a standard TAPI interface.
Unfortunatelly i didn't yet work on that topic.

But let me know if you find something useful.

Regards,
Detlef

Re: ID caller - Any experience ?

Posted: Thu Dec 17, 2009 3:03 pm
by James Bott
Marco,

I agree with Detlef, TAPI is what you want. Do a search on this fourm for TAPI and you will get some ideas and links to TAPI information and DLLs.

Regards,
James

Re: ID caller - Any experience ?

Posted: Thu Dec 17, 2009 3:52 pm
by Richard Chidiak
Marco,

I am also interested in this project, our customers also ask for this

James,

TAPI is definitely what i am looking for, documentation is OK, if someone has a good sample to share , it would help a lot,

Thanks for the help,

Richard

Re: ID caller - Any experience ?

Posted: Thu Dec 17, 2009 4:24 pm
by MarcoBoschi
Dear friends,
I apologize for my insistence.
TAPI is very complex is not easy to use.

The best solution, the cheapest, the one that always works....is to create a little program that works in background modee and listens via TCP or via RS232 every information arriving from PBX

In my experience every pbx send the same informations.
DIRECTION INCOMING OUTGOING
LINE NUMBER
CGPN Calling number
CDPN Called number
DATE TIME
DURATION

My dbf table or the table in which I store all informations from pbx has a defined structure
Externally in a .INI file I permit to customer to customize structure to read
for instance
direction=0001;0010
linenumber=0011;0015
cgpn=0016;0036;
and so on

bye

Re: ID caller - Any experience ?

Posted: Thu Dec 17, 2009 5:39 pm
by Otto
Hello Marco,

what hardware do you use?
Thanks in advance

Otto

Re: ID caller - Any experience ?

Posted: Thu Dec 17, 2009 5:43 pm
by James Bott
Marco B.

>TAPI is very complex is not easy to use.

I agree, if you are accessing TAPI directly. However, if you get an OCX, and then build a FW wrapper class around that, it would be simiple to use, and you would have access to all the TAPI capabilities.

Regards,
James

Re: ID caller - Any experience ?

Posted: Fri Dec 18, 2009 10:08 am
by MarcoBoschi
Otto,
Marco Boschi or Marco Turco?
Bye

Re: ID caller - Any experience ?

Posted: Fri Dec 18, 2009 10:33 am
by Otto
Hello Marco B.
I mean the interface between telephone and PC.
Do you know if the protocol is the same if you have an analog or digital account?
Best regards,
Otto