TSAPI - Deflect Call Service
TSAPI - Deflect Call Service
Function: cstaDeflectCall ()
Functional Description:
This service redirects an alerting call at a device to a new destination, either on-PBX or off-PBX.
The call at the redirecting device is dropped after a successful redirection. An application may
redirect an alerting call (at different devices) any number of times until the call is answered or
dropped by the caller.
The service request is positively acknowledged if the call has successfully redirected for an onPBX destination. For an off-PBX destination, this does not imply a successful redirection. It
indicates that the switch attempted to redirect the call to the off-PBX destination and
subsequent call progress events or tones may indicate redirection success or failure.
If the service request is negatively acknowledged, the call remains at the redirecting device and
the calledDevice is not involved in the call.
Service Parameters:
deflectCall
calledDevice
Ack Parameter:
noData
241
Nak Parameter:
universalFailure
Detailed Information:
242
Call Waiting - A call may be redirected while waiting at a busy analog set.
Deflect From Queue - This service will not redirect a call from a queue to a new
destination.
Delivered Event - If the calling device or call is monitored, an application subsequently
receives Delivered (or Network Reached) Event when redirection succeeds.
Diverted Event - If the redirecting device is monitored by a cstaMonitorDevice() or the call
is monitored by a cstaMonitorCallsViaDevice(), it will receive a Diverted Event when the
call is successfully redirected, but there will be no Diverted Event for a cstaMonitorCall
association.
Loop Back - A call cannot be redirected to the call originator or to the redirecting device
itself.
Off-PBX Destination - If the call is redirected to an off-PBX destination, the caller will hear
call progress tones. There may be conditions (for example, trunk not available) that will
prevent the call from being placed. The call is nevertheless routed in those cases, and the
caller receives busy or reorder treatment. An application may subsequently receive Failed,
Call Cleared, or Connection Cleared Events if redirection fails.
If trunk-to-trunk transfer is disallowed by the switch administration, redirection of an
incoming trunk call to an off-PBX destination will fail.
Priority and Forwarded Calls - Priority and forwarded calls are allowed to be redirected
with cstaDeflectCall.
Service Availability- This service is only available on a Communication Manager with
G3V4 or later software.
243
Syntax
#include <acs.h>
#include <csta.h>
// cstaDeflectCall() - Service Request
RetCode_t
cstaDeflectCall (
ACSHandle_t
acsHandle,
InvokeID_t
invokeID,
ConnectionID_t
*deflectCall,
DeviceID_t
*calledDevice,
PrivateData_t
*privateData);
deflectCall;
244