Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.xharbour

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-11-2010, 01:22 PM
Michael Hagl
Guest
 
Posts: n/a
Default tapi - how to ?

Hi,

does anybody knows how to dial a phone number using tapi ?

Thank you

Michael Hagl



Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 10-11-2010, 02:08 PM
dlzc
Guest
 
Posts: n/a
Default Re: tapi - how to ?

Dear Michael Hagl:

On Oct 11, 6:22*am, "Michael Hagl" <hag...@hagl.de> wrote:
> Hi,
>
> does anybody knows how to dial a phone number
> using tapi ?


Still not much of an answer to your need\:
http://groups.google.com/group/comp....c43b9d37f58687

This might be more help:
http://msdn.microsoft.com/en-us/libr...57(VS.85).aspx

David A. Smith
Reply With Quote
  #3 (permalink)  
Old 10-12-2010, 11:12 AM
Michael Hagl
Guest
 
Posts: n/a
Default Re: tapi - how to ?

Thank you for the link, but I know this MS-Site and at the moment it does
not help much, because I have no C skills.

Michael.



"dlzc" <dlzc1@cox.net> schrieb im Newsbeitrag
news:3884453a-deed-4557-9451-94ac9925a1f5@z30g2000prg.googlegroups.com...
Dear Michael Hagl:

On Oct 11, 6:22 am, "Michael Hagl" <hag...@hagl.de> wrote:
> Hi,
>
> does anybody knows how to dial a phone number
> using tapi ?


Still not much of an answer to your need\:
http://groups.google.com/group/comp....c43b9d37f58687

This might be more help:
http://msdn.microsoft.com/en-us/libr...57(VS.85).aspx

David A. Smith


Reply With Quote
  #4 (permalink)  
Old 10-13-2010, 06:44 AM
Michael Hagl
Guest
 
Posts: n/a
Default Re: tapi - how to ?

Hi,

I had a look at Pritpal Bedi's vouch32 activeX server. And it's tapi server
is able to dial a phone number.

But it seems there is no development since 4 years. When registerung the
dll, there is an error message:

"Module Vouche32x.prg was compiled into PCODE version: 7, this version of
xHarbour expects version: 10"

I feel not very comfortable, when using a third party product without source
code and without ongoing development.


Michael Hagl



"dlzc" <dlzc1@cox.net> schrieb im Newsbeitrag
news:3884453a-deed-4557-9451-94ac9925a1f5@z30g2000prg.googlegroups.com...
Dear Michael Hagl:

On Oct 11, 6:22 am, "Michael Hagl" <hag...@hagl.de> wrote:
> Hi,
>
> does anybody knows how to dial a phone number
> using tapi ?


Still not much of an answer to your need\:
http://groups.google.com/group/comp....c43b9d37f58687

This might be more help:
http://msdn.microsoft.com/en-us/libr...57(VS.85).aspx

David A. Smith


Reply With Quote
  #5 (permalink)  
Old 10-13-2010, 06:54 AM
pcordo
Guest
 
Posts: n/a
Default Re: tapi - how to ?

On 13 Oct, 08:44, "Michael Hagl" <hag...@hagl.de> wrote:
> Hi,
>
> I had a look at Pritpal Bedi's vouch32 activeX server. And it's tapi server
> is able to dial a phone number.
>
> But it seems there is no development since 4 years. When registerung the
> dll, there is an error message:
>
> "Module Vouche32x.prg was compiled into PCODE version: 7, this version of
> xHarbour expects version: 10"
>
> I feel not very comfortable, when using a third party product without source
> code and without ongoing development.
>
> Michael Hagl
>
> "dlzc" <dl...@cox.net> schrieb im Newsbeitragnews:3884453a-deed-4557-9451-94ac9925a1f5@z30g2000prg.googlegroups.com...
> Dear Michael Hagl:
>
> On Oct 11, 6:22 am, "Michael Hagl" <hag...@hagl.de> wrote:
>
> > Hi,

>
> > does anybody knows how to dial a phone number
> > using tapi ?

>
> Still not much of an answer to your need\:http://groups.google.com/group/comp....c43b9d37f58687
>
> This might be more help:http://msdn.microsoft.com/en-us/libr...57(VS.85).aspx
>
> David A. Smith


Hi Michael Hagl, you can use this code:


// Creem la Trucada.
hLib:= DllLoad("TAPI32.DLL")
hCall:= DllCall(hLib,0x0020,"tapiRequestMakeCall",cPhone, "", "",
"")
Freelibrary(hLib)

Pere Cordonet
Reply With Quote
  #6 (permalink)  
Old 10-13-2010, 07:16 AM
Michael Hagl
Guest
 
Posts: n/a
Default Re: tapi - how to ?

Thank you Pere,

your code works !! My prog dials a phone number

I will try to investigate the TapiRequestMakeCall function and test how it
works on different systems with different tapi's, because the function
should work on all customers systems with all the tapi they have.

Thank you

Michael Hagl



"pcordo" <perecordonet@gmail.com> schrieb im Newsbeitrag
news:ddca9632-d18d-42c4-b8fb-f2fcca020538@x23g2000vba.googlegroups.com...
> On 13 Oct, 08:44, "Michael Hagl" <hag...@hagl.de> wrote:
>> Hi,
>>
>> I had a look at Pritpal Bedi's vouch32 activeX server. And it's tapi
>> server
>> is able to dial a phone number.
>>
>> But it seems there is no development since 4 years. When registerung the
>> dll, there is an error message:
>>
>> "Module Vouche32x.prg was compiled into PCODE version: 7, this version of
>> xHarbour expects version: 10"
>>
>> I feel not very comfortable, when using a third party product without
>> source
>> code and without ongoing development.
>>
>> Michael Hagl
>>
>> "dlzc" <dl...@cox.net> schrieb im
>> Newsbeitragnews:3884453a-deed-4557-9451-94ac9925a1f5@z30g2000prg.googlegroups.com...
>> Dear Michael Hagl:
>>
>> On Oct 11, 6:22 am, "Michael Hagl" <hag...@hagl.de> wrote:
>>
>> > Hi,

>>
>> > does anybody knows how to dial a phone number
>> > using tapi ?

>>
>> Still not much of an answer to your
>> need\:http://groups.google.com/group/comp....c43b9d37f58687
>>
>> This might be more
>> help:http://msdn.microsoft.com/en-us/libr...57(VS.85).aspx
>>
>> David A. Smith

>
> Hi Michael Hagl, you can use this code:
>
>
> // Creem la Trucada.
> hLib:= DllLoad("TAPI32.DLL")
> hCall:= DllCall(hLib,0x0020,"tapiRequestMakeCall",cPhone, "", "",
> "")
> Freelibrary(hLib)
>
> Pere Cordonet



Reply With Quote
  #7 (permalink)  
Old 10-15-2010, 07:47 AM
Michael Hagl
Guest
 
Posts: n/a
Default Re: tapi - how to ?

Hi to all,

dialing a phone number works with the following code (Thanks to Pere
Cordonet). This is using the windows dialer.exe. I' searching for sourcecode
sample to use tapi without the diealer.exe.

#DEFINE TAPIERR_CONNECTED 0
#DEFINE TAPIERR_DROPPED -1
#DEFINE TAPIERR_NOREQUESTRECIPIENT -2
#DEFINE TAPIERR_REQUESTQUEUEFULL -3
#DEFINE TAPIERR_INVALDESTADDRESS -4
#DEFINE TAPIERR_INVALWINDOWHANDLE -5
#DEFINE TAPIERR_INVALDEVICECLASS -6
#DEFINE TAPIERR_INVALDEVICEID -7
#DEFINE TAPIERR_DEVICECLASSUNAVAIL -8
#DEFINE TAPIERR_DEVICEIDUNAVAIL -9
#DEFINE TAPIERR_DEVICEINUSE -10
#DEFINE TAPIERR_DESTBUSY -11
#DEFINE TAPIERR_DESTNOANSWER -12
#DEFINE TAPIERR_DESTUNAVAIL -13
#DEFINE TAPIERR_UNKNOWNWINHANDLE -14
#DEFINE TAPIERR_UNKNOWNREQUESTID -15
#DEFINE TAPIERR_REQUESTFAILED -16
#DEFINE TAPIERR_REQUESTCANCELLED -17
#DEFINE TAPIERR_INVALPOINTER -18


FUNCTION TapiCall(cNr)
LOCAL hLib, nCall

hLib:= DllLoad("TAPI32.DLL")
nCall:= DllCall(hLib,0x0020,"tapiRequestMakeCall",cNr, "", "","")
Freelibrary(hLib)
IF nCall = TAPIERR_NOREQUESTRECIPIENT
Getwait("Anrufmanager nicht erreichbar !!")
ELSEIF nCall = TAPIERR_REQUESTQUEUEFULL
Getwait("Anwahlwarteschlage voll !!")
ELSEIF nCall = TAPIERR_INVALDESTADDRESS
Getwait("Ungültige Telefonnummer !!")
ELSEIF nCall <> 0
Getwait("Anwahl nicht möglich (Fehler: "+Strtrim(nCall)+")")
ENDIF
RETURN NIL


Michael Hagl


Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 07:08 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.