PHP Класс Thruway\Call

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Session $callerSession, Thruway\Message\CallMessage $callMessage, Procedure $procedure ) Constructor
getCallMessage ( ) : Thruway\Message\CallMessage Get call message
getCallStart ( ) : string
getCalleeSession ( ) : Session Get callee session
getCallerSession ( ) : Session Get caller session
getCancelMessage ( ) : Thruway\Message\CancelMessage
getInterruptMessage ( ) : Thruway\Message\InterruptMessage
getInvocationMessage ( ) : Thruway\Message\InvocationMessage Get InvocationMessage
getInvocationRequestId ( ) : mixed
getIsProgressive ( ) : boolean Get state is progressive
getProcedure ( ) : Procedure
getRegistration ( ) : Registration Get registration
isProgressive ( ) : boolean Check is progressive
processCancel ( Session $session, Thruway\Message\CancelMessage $msg ) : boolean processCancel processes cancel message from the caller.
processYield ( Session $session, Thruway\Message\YieldMessage $msg ) : boolean Process Yield message
setCallMessage ( Thruway\Message\CallMessage $callMessage ) Set call message
setCalleeSession ( Session $calleeSession ) Set callee session
setCallerSession ( Session $callerSession ) Set caller session
setCancelMessage ( Thruway\Message\CancelMessage $cancelMessage )
setInterruptMessage ( Thruway\Message\InterruptMessage $interruptMessage )
setInvocationMessage ( Thruway\Message\InvocationMessage $invocationMessage ) Set Invocation message
setIsProgressive ( boolean $isProgressive ) update state is progressive
setRegistration ( Registration $registration )

Описание методов

__construct() публичный Метод

Constructor
public __construct ( Session $callerSession, Thruway\Message\CallMessage $callMessage, Procedure $procedure )
$callerSession Session
$callMessage Thruway\Message\CallMessage
$procedure Procedure

getCallMessage() публичный Метод

Get call message
public getCallMessage ( ) : Thruway\Message\CallMessage
Результат Thruway\Message\CallMessage

getCallStart() публичный Метод

public getCallStart ( ) : string
Результат string

getCalleeSession() публичный Метод

Get callee session
public getCalleeSession ( ) : Session
Результат Session

getCallerSession() публичный Метод

Get caller session
public getCallerSession ( ) : Session
Результат Session

getCancelMessage() публичный Метод

public getCancelMessage ( ) : Thruway\Message\CancelMessage
Результат Thruway\Message\CancelMessage

getInterruptMessage() публичный Метод

public getInterruptMessage ( ) : Thruway\Message\InterruptMessage
Результат Thruway\Message\InterruptMessage

getInvocationMessage() публичный Метод

Get InvocationMessage
public getInvocationMessage ( ) : Thruway\Message\InvocationMessage
Результат Thruway\Message\InvocationMessage

getInvocationRequestId() публичный Метод

public getInvocationRequestId ( ) : mixed
Результат mixed

getIsProgressive() публичный Метод

Get state is progressive
public getIsProgressive ( ) : boolean
Результат boolean

getProcedure() публичный Метод

public getProcedure ( ) : Procedure
Результат Procedure

getRegistration() публичный Метод

Get registration
public getRegistration ( ) : Registration
Результат Registration

isProgressive() публичный Метод

Check is progressive
public isProgressive ( ) : boolean
Результат boolean

processCancel() публичный Метод

Return true if the Call should be removed from active calls
public processCancel ( Session $session, Thruway\Message\CancelMessage $msg ) : boolean
$session Session
$msg Thruway\Message\CancelMessage
Результат boolean

processYield() публичный Метод

Process Yield message
public processYield ( Session $session, Thruway\Message\YieldMessage $msg ) : boolean
$session Session
$msg Thruway\Message\YieldMessage
Результат boolean if we need to keep the call indexed

setCallMessage() публичный Метод

Set call message
public setCallMessage ( Thruway\Message\CallMessage $callMessage )
$callMessage Thruway\Message\CallMessage

setCalleeSession() публичный Метод

Set callee session
public setCalleeSession ( Session $calleeSession )
$calleeSession Session

setCallerSession() публичный Метод

Set caller session
public setCallerSession ( Session $callerSession )
$callerSession Session

setCancelMessage() публичный Метод

public setCancelMessage ( Thruway\Message\CancelMessage $cancelMessage )
$cancelMessage Thruway\Message\CancelMessage

setInterruptMessage() публичный Метод

public setInterruptMessage ( Thruway\Message\InterruptMessage $interruptMessage )
$interruptMessage Thruway\Message\InterruptMessage

setInvocationMessage() публичный Метод

Set Invocation message
public setInvocationMessage ( Thruway\Message\InvocationMessage $invocationMessage )
$invocationMessage Thruway\Message\InvocationMessage

setIsProgressive() публичный Метод

update state is progressive
public setIsProgressive ( boolean $isProgressive )
$isProgressive boolean

setRegistration() публичный Метод

public setRegistration ( Registration $registration )
$registration Registration