View previous topic :: View next topic |
Author |
Message |
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Sep 04, 2003 11:21 am Post subject: Dial Phone |
|
|
Hi,
does somebody know a way to dial a phone with pc connection through vds (like other apps can do).
I mean a regular phone connected to the pc over serial cable.
Thank you.
Fabian |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Sep 04, 2003 3:09 pm Post subject: |
|
|
this is a thing i need too, but not what I meant in my post.
Some ISDN Phones have the ability to have the phonenumber dialed by a computer - so I can use my customer management software and click a "Call" button (ms access for example supports this) and let my pc dial the phonenumber on my telefon.
I think this is done through AT commands. I there a dll for this.
Tommy, is your voicemail dll still available ?
Thank you very much.
Bye, Fabian |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Sep 04, 2003 3:22 pm Post subject: |
|
|
I think it can be done by running a batch file that goes:
Code: | echo ATD12345678 >com1 |
assuming your modem is on COM1, of course. _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
Protected Valued Contributor
Joined: 02 Jan 2001 Posts: 228 Location: Portugal
|
Posted: Fri Sep 05, 2003 2:50 am Post subject: |
|
|
Ooooohhh, you can send commands to the modem with ECHO????? That's AWESOME! Thanks Jules, I think I'll test that tomorrow... I never imagined lol |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Fri Sep 05, 2003 10:19 am Post subject: |
|
|
the echo code does not work for me (I tested it on the commandline), but I found out, that there are API calls for TAPI.
As I know TAPI is the right interface for communications with a phone.
does somebody know about working with TAPI ? |
|
Back to top |
|
|
DanTheMan Contributor
Joined: 15 Mar 2002 Posts: 56 Location: Sweden
|
Posted: Fri Sep 05, 2003 12:03 pm Post subject: |
|
|
I don't now anyting about TAPI but i'm sure you can use Tommy's
vdsserio.dll for a proper comport setup. I used it for a file spooling system working with serial printers with success.
It's not recommended to use dos commands like echo , copy ... direct to a comport on Win2000 and XP.
Although it's ok for Win95/98 but then you have to set the baudrate, stopbits etc. with the "mode" command.
/Dan |
|
Back to top |
|
|
vdsalchemist Admin Team
Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Fri Sep 05, 2003 4:13 pm Post subject: |
|
|
if the windows call manager is installed, the following code works fine
(Thanks to Dragon Sphere for helping on the parameters).
Code: |
%%dummy = @lib(tapi32,tapiRequestMakeCallA,int:,@addr("%a"),@addr("%b"),@addr("%c"),@addr("%d")) |
%a is the phonenumber
%b my appname
%c the callers name
%d a comment
Works fine.
But maybe someone could build a tapi dll ? Someting like getting informed on incoming calls would be cool
Bye, Fabian |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Mon Sep 08, 2003 9:14 am Post subject: |
|
|
Hi,
is somebody here who knows enough about vb to make a vds example for dialing a phone ?
I found many api commands in the win32.hlp which are able to call a phone line without using the default call manager. Dragon Sphere sent me an example vb code which does this, but I do not understand much enough on vb.
The example can be found at: http://www.shrinkwrapvb.com/vbtapi.htm
Bye, Fabian |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Sep 08, 2003 11:00 am Post subject: |
|
|
I had seen this earlier. Such scripts are considered advanced even in VB and would drive most people away.
I think it can surely be converted to VDS but involves *large amount* of time and effort. Some one having a lot of freetime may probably take it up
Regards _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Mon Sep 08, 2003 11:13 am Post subject: |
|
|
Hi,
thanks for your answer. Why do you think that it would need so much time ? |
|
Back to top |
|
|
vdsalchemist Admin Team
Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Sep 08, 2003 1:20 pm Post subject: |
|
|
X-Tools wrote: | Hi,
thanks for your answer. Why do you think that it would need so much time ? |
Well first of all Tapi is not simple. Second it requires lots of API functions that have to be written. Third it requires research to really understand how the API works. Forth it uses several data Structures and data types which are not easy to build with VDS 5 and to get them right.
I had already started on an example for this but I lost the example when my harddrive crashed. Once Gadget is done I will get right back on it but that is still a month or two away.
Some parts of the Win32 API are better documented and more examples then other parts but this is not one of them. I find your question to CodeScript disturbing. If you don't think it would need so much time please by all means try your hand at building a TAPI interface for VDS 5
Anyway CodeScript is exactly right about it taking alot of time. Also that VB example that you posted uses CallBack functions which VDS 5 does not have. It could be converted to VDS but you would need to use the other option of TAPI which is to trap messages that TAPI sends to your Window. Really most API programmers consider TAPI to be on the fringe of the Win32 API. Impossible? No... Requires lots of time? Yes, to get it right. _________________ Home of
Give VDS a new purpose!
|
|
Back to top |
|
|
X-Tools Valued Contributor
Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Mon Sep 08, 2003 1:46 pm Post subject: |
|
|
I really understand what you mean and I think the same.
my idea was, that simple dialing over tapi (without accessing the call manger) should be not such a problem.
I saw, that the vb example has many code for different tapi versions.
I think that getting incoming call and handling other phone activity would be really heavy, but simple dialing ?
Please understand, that I am not the professional on system-near development and please excuse me if I am talking nonsense.
Bye, Fabian |
|
Back to top |
|
|
vdsalchemist Admin Team
Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Sep 08, 2003 1:59 pm Post subject: |
|
|
That ok Fabian,
Maybe I was a little harsh but we had already discussed this offline and I was trying to explain that this is not as simple as it looks. Dialing out is the easy part but capturing info and responding to TAPI is not so easy. It looks easy on paper but it requires more work then it appears. It may be possible to find a DLL that does this already and that would be the quickest way to go. _________________ Home of
Give VDS a new purpose!
|
|
Back to top |
|
|
|