FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ID caller - Any experience ?
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
ID caller - Any experience ?
Posted: Mon Dec 14, 2009 08:42 PM

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

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: ID caller - Any experience ?
Posted: Tue Dec 15, 2009 01:01 PM

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

Marco Boschi
info@marcoboschi.it
Posts: 284
Joined: Mon Oct 24, 2005 08:04 PM
Re: ID caller - Any experience ?
Posted: Tue Dec 15, 2009 07:22 PM

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

Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: ID caller - Any experience ?
Posted: Wed Dec 16, 2009 03:20 PM

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.

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: ID caller - Any experience ?
Posted: Wed Dec 16, 2009 03:46 PM

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.

Marco Boschi
info@marcoboschi.it
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: ID caller - Any experience ?
Posted: Wed Dec 16, 2009 03:58 PM

I Know Of Ugo Garombo made something of it last two year

Best Regards, Saludos



Falconi Silvio
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: ID caller - Any experience ?
Posted: Thu Dec 17, 2009 07:50 AM
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
Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 312
Joined: Sat Oct 08, 2005 09:12 AM
Re: ID caller - Any experience ?
Posted: Thu Dec 17, 2009 10:00 AM

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

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: ID caller - Any experience ?
Posted: Thu Dec 17, 2009 03:03 PM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: ID caller - Any experience ?
Posted: Thu Dec 17, 2009 03:52 PM

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

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: ID caller - Any experience ?
Posted: Thu Dec 17, 2009 04:24 PM

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

Marco Boschi
info@marcoboschi.it
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: ID caller - Any experience ?
Posted: Thu Dec 17, 2009 05:39 PM

Hello Marco,

what hardware do you use?
Thanks in advance

Otto

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: ID caller - Any experience ?
Posted: Thu Dec 17, 2009 05:43 PM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: ID caller - Any experience ?
Posted: Fri Dec 18, 2009 10:08 AM

Otto,
Marco Boschi or Marco Turco?
Bye

Marco Boschi
info@marcoboschi.it
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: ID caller - Any experience ?
Posted: Fri Dec 18, 2009 10:33 AM
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