TAPI - Requesting the establishment of a voice call

tapiRequestMakeCall()

Request the establishment of a voice call


SYNTAX

tapiRequestMakeCall(DestAddress, AppName, CalledParty, Comment)

This function requests the establishment of a voice call. A call-manager application is responsible for establishing the call on behalf of the requesting application, which is thereafter controlled by the user’s call-manager application.

This function accepts four alphanumeric (data string) type parameters:

DestAddress

The destination address of the call. The canonical address format can be used. No validity check is made on the address.

AppName

The user-friendly application name of the call. Optional.

CalledParty

The name of the called party. Optional.

Comment

Comment text about the call. Optional.


EXAMPLE

!temp Address,,a30
!temp AppName,,a30
!temp CalledParty,,a30
!temp Comment,,a30

     +button btProcess at 20, 15 {
          label = " Process Call "
          event = Dial
     }

!function Dial(event_code, button_id) {
     switch (button_id) {
     case ?= btProcess:
          switch (event_code) {
          case = EV_BUTTON_UP:
               tapiRequestMakeCall(tmp.Address, tmp.AppName, tmp.CalledParty, tmp.Comment)
               return CLOSE_DIALOG
          }
     }
}

RELATED TOPICS

TAPI