Jump to content

Tapi Call

Recommended Posts


Here is some example Code for Tapi Call.

Works for me with WinXP SP3 and Siemens Hipath and Tapi v170.


Local $txtAddressName = "LineName" ;Name of Line
Local $Number = "123456" ; Number to call

$objTapi = ObjCreate("TAPI.TAPI.1")
$mapper = ObjCreate("DispatchMapper.DispatchMapper.1")
$objTapi.EventFilter = $TAPI3_ALL_TAPI_EVENTS
$objCollAddresses = $objTapi.Addresses
For $lLoop = 1 To $objCollAddresses.Count
    $objCrtAddress = $objCollAddresses.Item($lLoop)
    If $objCrtAddress.AddressName = $txtAddressName Then
        $gobjAddress = $objCrtAddress
        $bolFoundLine = True

If $bolFoundLine = True Then
    $TestCall = $gobjAddress.CreateCall($Number, $lAddressType, $LINEMEDIAMODE_INTERACTIVEVOICE)

Share this post

Link to post
Share on other sites

Thank you for this. I have elaborated it a bit, so that it takes command line arguments. Secondly I've made a small script that registers the dialer script so that "callto:\\" links on websites are routed to it. Works like a charm with our Tiptel PBX and the addressbook on the intranet website! If anyone is interested I'd be happy to share.

However, can anyone give me a clue on how to detect the actual line status through TAPI? I know that it has something to do with "registercallnotifications" but can't seem to wrap my head around it...


Share this post

Link to post
Share on other sites

Hi fomas.

I am very interested in the script you have to register the script to use the dail links. We have some new phones in our office which can place a call be sending them a URL string and I am very keen to write something to take advantage of that.



Share this post

Link to post
Share on other sites

hi, alltough its an old post, its greatly apretiated.


It works in the application i am triying to build. 

I need the code to transfer  a call can someone help? that would allow me to solve some really tough problems for me.




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.