AcceptCall

Description

Accepts a new incoming call.

Applies to

PhoneCall objects

Syntax

objectname.AcceptCall (  )

Argument

Description

objectname

The name of the PhoneCall object that will accept a call.

Returns

Integer. Returns 1 for success and a negative value if an error occurs.

Examples

Example 1

In the following example, the g_phInit global variable is set to 1 in the pcall_1 object’s constructor. If the call has been initialized, the AcceptCall function is called. The End Call button is enabled and the New Call button is disabled:

// Global variable: Long g_phInit = 0 
integer li_ret
if ( g_phInit > 0) then
   li_ret = pcall_1.AcceptCall()
   // enable buttons
   cb_endcall.enabled = true
   cb_newcall.enabled = false
else
   sle_1.text = "Call not initialized"
end if

See also