forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Dial Phone
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Help for VDS 5 & Up
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Thu Sep 04, 2003 11:21 am    Post subject: Dial Phone Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Sep 04, 2003 2:58 pm    Post subject: Reply with quote

I believe Tommy once made a voicemail DLL. I don't know if it's still there, and if you can phone with it, but you might ask him... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Thu Sep 04, 2003 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Sep 04, 2003 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Protected
Valued Contributor
Valued Contributor


Joined: 02 Jan 2001
Posts: 228
Location: Portugal

PostPosted: Fri Sep 05, 2003 2:50 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Fri Sep 05, 2003 10:19 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
DanTheMan
Contributor
Contributor


Joined: 15 Mar 2002
Posts: 56
Location: Sweden

PostPosted: Fri Sep 05, 2003 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Fri Sep 05, 2003 1:28 pm    Post subject: Reply with quote

Hi All,
I have been working on a project to add TAPI support for VDS but until I get that working here is a Microsoft site that gives you a few more AT commands that you can use. Specifically to be able to dail out to a regular phone.

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q164/6/59.asp&NoWebContent=1

You can also check out http://www.modems.com which has a ton of information about modems.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Fri Sep 05, 2003 4:13 pm    Post subject: Reply with quote

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 Wink

Bye, Fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Mon Sep 08, 2003 9:14 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Sep 08, 2003 11:00 am    Post subject: Reply with quote

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 Smile
Regards

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Mon Sep 08, 2003 11:13 am    Post subject: Reply with quote

Hi,

thanks for your answer. Why do you think that it would need so much time ?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Sep 08, 2003 1:20 pm    Post subject: Reply with quote

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 Wink
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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Mon Sep 08, 2003 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Sep 08, 2003 1:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Help for VDS 5 & Up All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group