Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Service_DeveloperGarden_VoiceCall Class Reference

Public Member Functions

 newCall ($aNumber, $bNumber, $expiration, $maxDuration, $account=null, $privacyA=null, $privacyB=null, $greeter=null)
 init a new call with the given params
 
 newCallSequenced ($aNumber, $bNumber, $expiration, $maxDuration, $maxWait, $account=null, $privacyA=null, $privacyB=null, $greeter=null)
 init a new call with the given params but specially here, you can define a set of numbers to be called if the first number isnt reachable (ie: bNumber = +4930-111111,+4930-222222,+4930-333333)
 
 tearDownCall ($sessionId)
 This tear down the call with the given sessionId.
 
 callStatus ($sessionId, $keepAlive=null)
 checks the callStatus and updates the keepAlive if provided
 
- Public Member Functions inherited from Zend_Service_DeveloperGarden_Client_ClientAbstract
 __construct (array $options=array())
 constructor
 
 setOption ($name, $value)
 Set an option.
 
 getOption ($name)
 get an option value from the internal options object
 
 getSoapClient ()
 returns the internal soap client if not allready exists we create an instance of Zend_Soap_Client
 
 setEnvironment ($environment)
 sets new environment
 
 getEnvironment ()
 returns the current configured environemnt
 
 getWsdl ()
 returns the wsdl file path, a uri or the local path
 
 setUseLocalWsdl ($use=true)
 switch to the local wsdl file usage
 
 setWsdl ($wsdlFile=null)
 sets a new wsdl file
 
 setLocalWsdl ($wsdlFile=null)
 sets a new local wsdl file
 
 getClientOptions ()
 returns an array with configured options for this client
 
 getCredential ()
 returns the internal credential object
 

Protected Attributes

 $_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-voicebutler/services/VoiceButlerService?wsdl'
 
 $_wsdlFileLocal = 'Wsdl/VoiceButlerService.wsdl'
 
 $_classMap
 
- Protected Attributes inherited from Zend_Service_DeveloperGarden_Client_ClientAbstract
 $_options = array()
 
 $_serviceAuthId = 'https://odg.t-online.de'
 
 $_serviceEnvironment = Zend_Service_DeveloperGarden_Client_ClientAbstract::ENV_PRODUCTION
 
 $_wsdlFile = null
 
 $_wsdlFileLocal = null
 
 $_useLocalWsdl = true
 
 $_credential = null
 
 $_soapClient = null
 
 $_classMap = array()
 

Additional Inherited Members

- Static Public Member Functions inherited from Zend_Service_DeveloperGarden_Client_ClientAbstract
static getParticipantActions ()
 returns an array of all available environments
 
static checkParticipantAction ($action)
 checks if the given action is valid otherwise it
 
static getEnvironments ()
 returns an array of all available environments
 
static checkEnvironment ($environment)
 checks if the given environemnt is valid otherwise it
 
- Public Attributes inherited from Zend_Service_DeveloperGarden_Client_ClientAbstract
const ENV_PRODUCTION = 1
 constants for using with the odg api
 
const ENV_SANDBOX = 2
 
const ENV_MOCK = 3
 
const PARTICIPANT_MUTE_OFF = 0
 
const PARTICIPANT_MUTE_ON = 1
 
const PARTICIPANT_RECALL = 2
 
- Static Protected Member Functions inherited from Zend_Service_DeveloperGarden_Client_ClientAbstract
static _buildConstArray ()
 helper method to create const arrays
 
- Static Protected Attributes inherited from Zend_Service_DeveloperGarden_Client_ClientAbstract
static $_consts = null
 

Member Function Documentation

callStatus (   $sessionId,
  $keepAlive = null 
)

checks the callStatus and updates the keepAlive if provided

Parameters
string$sessionId
integer$keepAlive
Returns
Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse
newCall (   $aNumber,
  $bNumber,
  $expiration,
  $maxDuration,
  $account = null,
  $privacyA = null,
  $privacyB = null,
  $greeter = null 
)

init a new call with the given params

Parameters
string$aNumber
string$bNumber
integer$expiration
integer$maxDuration
integer$account
boolean$privacyA
boolean$privacyB
string$greeter
Returns
Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallResponse
newCallSequenced (   $aNumber,
  $bNumber,
  $expiration,
  $maxDuration,
  $maxWait,
  $account = null,
  $privacyA = null,
  $privacyB = null,
  $greeter = null 
)

init a new call with the given params but specially here, you can define a set of numbers to be called if the first number isnt reachable (ie: bNumber = +4930-111111,+4930-222222,+4930-333333)

Exceptions
Zend_Service_DeveloperGarden_Client_Exception
Parameters
string$aNumber
array$bNumber
integer$expiration
integer$maxDuration
integer$maxWait
integer$account
boolean$privacyA
boolean$privacyB
string$greeter
Returns
Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallSequencedResponse
tearDownCall (   $sessionId)

This tear down the call with the given sessionId.

Parameters
string$sessionId
Returns
Zend_Service_DeveloperGarden_Response_VoiceButler_TearDownCallResponse

Member Data Documentation

$_classMap
protected
Initial value:
= array(
'newCallResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallResponse',
'newCallSequencedResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_NewCallSequencedResponse',
'tearDownCallResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_TearDownCallResponse',
'callStatusResponse' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatusResponse',
'callStatus2Response' => 'Zend_Service_DeveloperGarden_Response_VoiceButler_CallStatus2Response'
)
$_wsdlFile = 'https://gateway.developer.telekom.com/p3gw-mod-odg-voicebutler/services/VoiceButlerService?wsdl'
protected
$_wsdlFileLocal = 'Wsdl/VoiceButlerService.wsdl'
protected