Cloud CM-IPMP Guía para resolver problemas Pagina 173

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 201
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 172
1. It starts when receives a JCC event:
CONNECTION_CONNECTED
2. It stores the start time in a CMP field.
3. The service receives one of the following JCC events:
CONNECTION_DISCONNECTED
CONNECTION_FAILED
4. It calculates the call duration, reading the CMP field, and detaches from activity.
5. The service finishes.
23.7.1 Call Duration Service - Architecture
The JCC components included are:
JCC Resource Adaptor: this is the same resource adaptor as used in the above examples.
JCC Events: the duration service listens for several JCC Events:
JccConnectionEvent.CONNECTION_CONNECTED
JccConnectionEvent.CONNECTION_DISCONNECTED
JccConnectionEvent.CONNECTION_FAILED
JCC Call Duration SBB: this contains the service logic, comprising of:
Event handler method
onCallConnected
to store the call start time.
Event handler methods
onCallDisconnected
and
onCallFailed
to calculate call duration.
23.7.2 Call Duration Service - Execution
JCC event: Call Connected
When user A makes a call to user B, B answers the call and a new JCC event arrives at the JAIN SLEE. The deployment
descripter below shows how these events are declared:
<event event-direction="Receive" initial-event="True">
<event-name>CallConnected</event-name>
<event-type-ref>
<event-type-name> javax.csapi.cc.jcc.JccConnectionEvent.CONNECTION_CONNECTED
</event-type-name>
<event-type-vendor>javax.csapi.cc.jcc</event-type-vendor>
<event-type-version>1.1</event-type-version>
</event-type-ref>
<initial-event-select variable="ActivityContext"/>
<initial-event-selector-method-name>determineIsOriginating</initial-event-selector-method-name>
<event-resource-option>block</event-resource-option>
</event>
This service has an initial event (
initial-event="True"
), which is the “Connection Connected event”. The variable selected
to determine if a root SBB must be created is Activity Context” (
initial-event-select variable="ActivityContext"
).
So when a “Connection Connected” event arrives at the JCC Resource Adaptor, a new root SBB will be created for that service
if there is not already an Activity handling this call.
The JCC Resource Adaptor creates an activity for the initial event. The Activity Object associated with this activity is the
JccConnection object. The JCC Resource Adaptor enqueues the event to the SLEE Endpoint.
Open Cloud Rhino 1.4.3 Administration Manual v1.1 164
Vista de pagina 172
1 2 ... 168 169 170 171 172 173 174 175 176 177 178 ... 200 201

Comentarios a estos manuales

Sin comentarios