#include <h450pdu.h>
Inheritance diagram for H4502Handler:
Public Types | |
enum | State { e_ctIdle, e_ctAwaitIdentifyResponse, e_ctAwaitInitiateResponse, e_ctAwaitSetupResponse, e_ctAwaitSetup, e_ctAwaitConnect } |
Public Member Functions | |
H4502Handler (H323Connection &connection, H450xDispatcher &dispatcher) | |
virtual void | AttachToSetup (H323SignalPDU &pdu) |
virtual void | AttachToAlerting (H323SignalPDU &pdu) |
virtual void | AttachToConnect (H323SignalPDU &pdu) |
virtual void | AttachToReleaseComplete (H323SignalPDU &pdu) |
virtual BOOL | OnReceivedInvoke (int opcode, int invokeId, int linkedId, PASN_OctetString *argument) |
virtual void | OnReceivedCallTransferIdentify (int linkedId) |
virtual void | OnReceivedCallTransferAbandon (int linkedId) |
virtual void | OnReceivedCallTransferInitiate (int linkedId, PASN_OctetString *argument) |
virtual void | OnReceivedCallTransferSetup (int linkedId, PASN_OctetString *argument) |
virtual void | OnReceivedCallTransferUpdate (int linkedId, PASN_OctetString *argument) |
virtual void | OnReceivedSubaddressTransfer (int linkedId, PASN_OctetString *argument) |
virtual void | OnReceivedCallTransferComplete (int linkedId, PASN_OctetString *argument) |
virtual void | OnReceivedCallTransferActive (int linkedId, PASN_OctetString *argument) |
virtual BOOL | OnReceivedReturnResult (X880_ReturnResult &returnResult) |
void | OnReceivedInitiateReturnResult () |
void | OnReceivedSetupReturnResult () |
void | OnReceivedIdentifyReturnResult (X880_ReturnResult &returnResult) |
virtual BOOL | OnReceivedReturnError (int errorCode, X880_ReturnError &returnError) |
void | OnReceivedInitiateReturnError (const bool timerExpiry=false) |
void | OnReceivedSetupReturnError (int errorCode, const bool timerExpiry=false) |
void | OnReceivedIdentifyReturnError (const bool timerExpiry=false) |
void | TransferCall (const PString &remoteParty, const PString &callIdentity) |
void | ConsultationTransfer (const PString &primaryCallToken) |
void | HandleConsultationTransfer (const PString &callIdentity, H323Connection &incoming) |
void | AwaitSetupResponse (const PString &token, const PString &identity) |
State | GetState () const |
virtual void | onReceivedAdmissionReject (const int returnError) |
void | HandleCallTransferFailure (const int returnError) |
void | StartctTimer (const PTimeInterval value) |
void | StopctTimer () |
BOOL | IsctTimerRunning () |
PDECLARE_NOTIFIER (PTimer, H4502Handler, OnCallTransferTimeOut) | |
const H323Connection & | getAssociatedConnection () const |
void | SetAssociatedCallToken (const PString &token) |
const PString & | getTransferringCallToken () const |
void | SetConsultationTransferSuccess () |
BOOL | isConsultationTransferSuccess () |
Protected Attributes | |
PString | transferringCallToken |
PString | transferringCallIdentity |
State | ctState |
BOOL | ctResponseSent |
PTimer | ctTimer |
PString | CallToken |
BOOL | consultationTransfer |
|
Sub-state for call transfer. |
|
|
|
Reimplemented from H450xHandler. |
|
Reimplemented from H450xHandler. |
|
Reimplemented from H450xHandler. |
|
Reimplemented from H450xHandler. |
|
|
|
Transfer the call through consultation so the remote party in the primary call is connected to the called party in the second call using H.450.2. This sends a Call Transfer Identify Invoke message from the A-Party (transferring endpoint) to the C-Party (transferred-to endpoint).
|
|
Get the connection assoicated with this H4502Handler. |
|
Get the current call transfer state. |
|
Get the transferringCallToken member |
|
Handle the failure of a call transfer operation.
|
|
Handle the reception of a callTransferSetupInvoke APDU whilst a secondary call exists.
|
|
Was the transfer through consultation successful. |
|
Is the Call Transfer Timer running? |
|
Handle the reception of an Admission Reject during a pending call transfer operation at the transferred endpoint. If the call transfer state of the current connection is e_ctAwaitSetupResponse, the stack attempts to find the existing connection between the transferred and transferring endpoints and inform this connection that a callTransferInitiateReturnError PDU needs to be sent. No action is taken if the current connection is not in call transfer state e_ctAwaitSetupResponse. |
|
Handle an incoming Call Transfer Abandon operation.
|
|
Handle an incoming Call Transfer Active operation.
|
|
Handle an incoming Call Transfer Complete operation.
|
|
Handle an incoming Call Transfer Identify operation.
|
|
Handle an incoming Call Transfer Initiate operation.
|
|
Handle an incoming Call Transfer Setup operation.
|
|
Handle an incoming Call Transfer Update operation.
|
|
Handle the reception of a callTransferIdentify returnError or expiry of Call Transfer Timer CT-T1 when we are in call transfer state e_ctAwaitIdentifyResponse. Note this is an internal function and it is not expected an application would use it.
|
|
Handle the reception of a callTransferIdentify returnResult when we are in call transfer state e_ctAwaitIdentifyResponse. Note this is an internal function and it is not expected an application would use it. |
|
Handle the reception of a callTransferInitiate returnError or expiry of Call Transfer Timer CT-T3 when we are in call transfer state e_ctAwaitInitiateResponse. Note this is an internal function and it is not expected an application would use it.
|
|
Handle the reception of a callTransferInitiate returnResult when we are in call transfer state e_ctAwaitInitiateResponse. Note this is an internal function and it is not expected an application would use it. |
|
Implements H450xHandler. |
|
Reimplemented from H450xHandler. |
|
Reimplemented from H450xHandler. |
|
Handle the reception of a callTransferSetup returnError or expiry of Call Transfer Timer CT-T4 when we are in call transfer state e_ctAwaitSetupResponse. This funtion also additionally handles the case when the transferred-to endpoint does not support H.450.2 and has rejected the incoming call request. Note this is an internal function and it is not expected an application would use it.
|
|
Handle the reception of a callTransferSetup returnResult when we are in call transfer state e_ctAwaitSetupResponse. This funtion exists to handle the case when the transferred-to endpoint does not support H.450.2. Note this is an internal function and it is not expected an application would use it. |
|
Handle an incoming Subaddress Transfer operation.
|
|
Callback mechanism for Call Transfer Timers CT-T1, CT-T2, CT-T3 & CT-T4 |
|
Set the associated callToken. |
|
Set the 'consultationTransfer' member to TRUE (indicating a successful transfer) |
|
Start the Call Transfer Timer using the specified time interval. |
|
Stop the Call Transfer Timer |
|
Initiate the transfer of an existing call (connection) to a new remote party using H.450.2. This sends a Call Transfer Initiate Invoke message from the A-Party (transferring endpoint) to the B-Party (transferred endpoint).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|