IonicWind Software

IWBasic => General Questions => Topic started by: TonyMUK on July 11, 2008, 04:17:03 AM

Title: TAPI
Post by: TonyMUK on July 11, 2008, 04:17:03 AM
Has anyone used TAPI in ebasic? I am trying to create a program that will receive a parameter of phone number and then dial that number through a PABX using TAPI. I have done it in VB but the declerations of TAPI and its functions are confusing me. Any help would be greatly appreciated.
Title: Re: TAPI
Post by: sapero on July 11, 2008, 07:57:21 AM
Install the SDK headers and start with this line :D$include "tapi.inc"
If you stuck somewhere, let us know.
Title: Re: TAPI
Post by: TonyMUK on July 11, 2008, 10:11:56 AM
Thanks for that. I'll give it a go.
Title: Re: TAPI
Post by: Copex on July 11, 2008, 03:58:08 PM



' Demo on how to use the phone dialer via API
' http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mob5conTelephonyAPITAPI.asp
'
' Ibasic pro code
' before you can run this program you need to make an inport library for TAPI32.DLL
' (menu Tools, create import library. then select "TAPI32.DLL")

$USE "tapi32.lib"

DECLARE IMPORT, tapiRequestMakeCall(Dest:STRING,AppName:STRING,CalledParty:STRING,Comment:STRING), Int

DEF sPhoneNum,sTitle,sBuddy,sComment:STRING
sPhoneNum = "555-5555"
sTitle = "Personal Phone book"
sBuddy = "Pizza Palace"
sComment = "No Anchovies!"

' a return <> 0 indicates a failure
res = tapiRequestMakeCall(sPhoneNum, sTitle, sBuddy, sComment)

Title: Re: TAPI
Post by: TonyMUK on August 27, 2008, 05:35:19 AM
I did it ;D

I have managed to create a program that accepts the phone number and then dials it.

If anyone is interested here it is.
Title: Re: TAPI
Post by: Haim on August 27, 2008, 06:11:40 AM
Thanks for sharing1

haim
Title: Re: TAPI
Post by: TonyMUK on August 28, 2008, 01:45:52 AM
That's What life is all about  ;D