...
When an agent logs into the media bar, the media bar first contacts all available HIS servers to get information about their current status and load. The status property indicates the general state of the processor. The acceptingClients property determines if the processor is currently accepting new clients. The clientCount property is the total number of clients that have bound to the service. The media bar uses this information to select the HIS that is accepting clients and has the lowest load (connected clients).
Code Block |
---|
2023-06-13_14:58:33.218 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Request Received: {"messageType":"coreRequest","requestId":"56405ddd-0073-415c-9f55-9c9953831143","command":"bindService","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:33.219 UTC DEBUG WorkEngine DirectClients - Inspecting Queue: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound Size: 1
2023-06-13_14:58:33.219 UTC DEBUG WorkEngine DirectClients - Dequeued 1 items from media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:33.219 UTC DEBUG WorkEngine DirectClients - Looking for idle thread
2023-06-13_14:58:33.219 UTC DEBUG WorkEngine DirectClients.1 - Processing: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound 1
2023-06-13_14:58:33.219 UTC DEBUG WorkEngine DirectClients.1 - Item: 0 Age: 0 InboundMessage: {"messageType":"coreRequest","requestId":"56405ddd-0073-415c-9f55-9c9953831143","command":"bindService","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:33.219 UTC DEBUG NetworkSession media-bar rajat.gupta@openmethods.com - Dispatching Message:
{"messageType":"coreRequest","requestId":"56405ddd-0073-415c-9f55-9c9953831143","command":"bindService","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:33.219 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Queued Response: {"messageType":"coreResponse","requestId":"56405ddd-0073-415c-9f55-9c9953831143","command":"bindService","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36","serviceName":"PureCloud","serviceType":"com.openmethods.iserver.processor","result":"success"}
2023-06-13_14:58:33.219 UTC DEBUG WorkEngine DirectClients.1 - Item 0 done in 0 InboundMessage: {"messageType":"coreRequest","requestId":"56405ddd-0073-415c-9f55-9c9953831143","command":"bindService","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:33.219 UTC DEBUG WorkEngine DirectClients.1 - Finished with queue processing
2023-06-13_14:58:33.219 UTC DEBUG WorkEngine DirectClients.1 - Removing queue lock for media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:33.220 UTC DEBUG WorkEngine DirectClients.1 - Going back to idle pool
2023-06-13_14:58:33.323 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Request Received: {"messageType":"coreRequest","requestId":"140363ab-28ad-458b-b76f-f98130aec870","command":"bindService","serviceId":"WorkflowManager"}
2023-06-13_14:58:33.323 UTC DEBUG WorkEngine DirectClients - Inspecting Queue: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound Size: 1
2023-06-13_14:58:33.323 UTC DEBUG WorkEngine DirectClients - Dequeued 1 items from media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:33.323 UTC DEBUG WorkEngine DirectClients - Looking for idle thread
2023-06-13_14:58:33.323 UTC DEBUG WorkEngine DirectClients.2 - Processing: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound 1
2023-06-13_14:58:33.323 UTC DEBUG WorkEngine DirectClients.2 - Item: 0 Age: 0 InboundMessage: {"messageType":"coreRequest","requestId":"140363ab-28ad-458b-b76f-f98130aec870","command":"bindService","serviceId":"WorkflowManager"}
2023-06-13_14:58:33.323 UTC DEBUG NetworkSession media-bar rajat.gupta@openmethods.com - Dispatching Message:
{"messageType":"coreRequest","requestId":"140363ab-28ad-458b-b76f-f98130aec870","command":"bindService","serviceId":"WorkflowManager"}
2023-06-13_14:58:33.323 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Queued Response: {"messageType":"coreResponse","requestId":"140363ab-28ad-458b-b76f-f98130aec870","command":"bindService","serviceId":"WorkflowManager","serviceName":"WorkflowManager","serviceType":"com.openmethods.iserver.workflow.manager","result":"success"}
2023-06-13_14:58:33.323 UTC DEBUG WorkEngine DirectClients.2 - Item 0 done in 0 InboundMessage: {"messageType":"coreRequest","requestId":"140363ab-28ad-458b-b76f-f98130aec870","command":"bindService","serviceId":"WorkflowManager"}
2023-06-13_14:58:33.323 UTC DEBUG WorkEngine DirectClients.2 - Finished with queue processing
2023-06-13_14:58:33.323 UTC DEBUG WorkEngine DirectClients.2 - Removing queue lock for media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:33.324 UTC DEBUG WorkEngine DirectClients.2 - Going back to idle pool |
Once an HIS instance is selected, the media bar binds to the processor and workflow components. Binding to a component allows a client to access that component’s API and receive events produced by it.
Code Block |
---|
2023-06-13_14:58:34.699 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Request Received: {"requestId":"1062ccea-c1de-4d75-a2ed-f370d82a8df7","request":{"command":"getCapabilities","data":""},"messageType":"serviceRequest","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:34.699 UTC DEBUG WorkEngine DirectClients - Inspecting Queue: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound Size: 1
2023-06-13_14:58:34.699 UTC DEBUG WorkEngine DirectClients - Dequeued 1 items from media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:34.699 UTC DEBUG WorkEngine DirectClients - Looking for idle thread
2023-06-13_14:58:34.699 UTC DEBUG WorkEngine DirectClients.3 - Processing: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound 1
2023-06-13_14:58:34.699 UTC DEBUG WorkEngine DirectClients.3 - Item: 0 Age: 0 InboundMessage: {"requestId":"1062ccea-c1de-4d75-a2ed-f370d82a8df7","request":{"command":"getCapabilities","data":""},"messageType":"serviceRequest","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:34.699 UTC DEBUG NetworkSession media-bar rajat.gupta@openmethods.com - Dispatching Message:
{"requestId":"1062ccea-c1de-4d75-a2ed-f370d82a8df7","request":{"command":"getCapabilities","data":""},"messageType":"serviceRequest","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:34.699 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Queued Response: {"messageType":"serviceResponse","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36","requestId":"1062ccea-c1de-4d75-a2ed-f370d82a8df7","response":{"command":"getCapabilities","result":"success","data":{"channel-groups-max-per-agent":"0","single-channels-media-types":"","channel-actions":"first","channel-groups-media-types":"","channel-groups-supported":"false","single-channels-supported":"true"}}}
2023-06-13_14:58:34.699 UTC DEBUG WorkEngine DirectClients.3 - Item 0 done in 0 InboundMessage: {"requestId":"1062ccea-c1de-4d75-a2ed-f370d82a8df7","request":{"command":"getCapabilities","data":""},"messageType":"serviceRequest","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:34.700 UTC DEBUG WorkEngine DirectClients.3 - Finished with queue processing
2023-06-13_14:58:34.700 UTC DEBUG WorkEngine DirectClients.3 - Removing queue lock for media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:34.700 UTC DEBUG WorkEngine DirectClients.3 - Going back to idle pool
2023-06-13_14:58:34.762 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Request Received: {"requestId":"5b21f472-c7d2-41ae-91e2-a42813beeade","request":{"command":"prepareSession","data":{"agent":{"id":"rajat1","password":"snu6XMUjEBstKXGhLkVQ0qvnGxQ3OwddLXgfobUpK2yW1Xql-b8uAf0nlJ4q4UpFowYCUUe1_UX6qHNdy8PP5w"},"model":"RNA-PureCloud","override":true,"cti":"e70f36a4-982f-47e2-9420-780ebe581f36"}},"messageType":"serviceRequest","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:34.763 UTC DEBUG WorkEngine DirectClients - Inspecting Queue: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound Size: 1
2023-06-13_14:58:34.763 UTC DEBUG WorkEngine DirectClients - Dequeued 1 items from media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:34.763 UTC DEBUG WorkEngine DirectClients - Looking for idle thread
2023-06-13_14:58:34.763 UTC DEBUG WorkEngine DirectClients.5 - Processing: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound 1
2023-06-13_14:58:34.763 UTC DEBUG WorkEngine DirectClients.5 - Item: 0 Age: 0 InboundMessage: {"requestId":"5b21f472-c7d2-41ae-91e2-a42813beeade","request":{"command":"prepareSession","data":{"agent":{"id":"rajat1","password":"snu6XMUjEBstKXGhLkVQ0qvnGxQ3OwddLXgfobUpK2yW1Xql-b8uAf0nlJ4q4UpFowYCUUe1_UX6qHNdy8PP5w"},"model":"RNA-PureCloud","override":true,"cti":"e70f36a4-982f-47e2-9420-780ebe581f36"}},"messageType":"serviceRequest","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:34.763 UTC DEBUG NetworkSession media-bar rajat.gupta@openmethods.com - Dispatching Message:
{"requestId":"5b21f472-c7d2-41ae-91e2-a42813beeade","request":{"command":"prepareSession","data":{"agent":{"id":"rajat1","password":"snu6XMUjEBstKXGhLkVQ0qvnGxQ3OwddLXgfobUpK2yW1Xql-b8uAf0nlJ4q4UpFowYCUUe1_UX6qHNdy8PP5w"},"model":"RNA-PureCloud","override":true,"cti":"e70f36a4-982f-47e2-9420-780ebe581f36"}},"messageType":"serviceRequest","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:34.763 UTC DEBUG PureCloudProcessor PureCloud - Looking for existing session to bind to client: PureCloud-rajat1
2023-06-13_14:58:34.763 UTC INFO PureCloudProcessor PureCloud - Creating new agent session with data {"agent":{"id":"rajat1","password":"snu6XMUjEBstKXGhLkVQ0qvnGxQ3OwddLXgfobUpK2yW1Xql-b8uAf0nlJ4q4UpFowYCUUe1_UX6qHNdy8PP5w"},"model":"RNA-PureCloud","override":true,"cti":"e70f36a4-982f-47e2-9420-780ebe581f36"}.
2023-06-13_14:58:34.765 UTC INFO WorkflowManager SYSTEM - Created new workflow session PureCloud-rajat1 with model RNA-PureCloud
2023-06-13_14:58:34.765 UTC DEBUG WorkflowManager SYSTEM - Added session com.openmethods.iserver.workflow.WorkflowSession@3e33d97a to sessions. Total sessions: 2
2023-06-13_14:58:34.765 UTC DEBUG PureCloudProcessor PureCloud - Preauthenication is not possible for PureCloud
2023-06-13_14:58:34.765 UTC INFO PureCloudProcessor PureCloud - logging in agent rajat1 with properties {"agent":{"id":"rajat1","password":"snu6XMUjEBstKXGhLkVQ0qvnGxQ3OwddLXgfobUpK2yW1Xql-b8uAf0nlJ4q4UpFowYCUUe1_UX6qHNdy8PP5w"},"model":"RNA-PureCloud","override":true,"cti":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:35.066 UTC DEBUG PureCloudAgent rajat1 - Initialized with processor com.openmethods.iserver.processor.purecloud.PureCloudProcessor@272c9f68 and ctiAgent rajat1
2023-06-13_14:58:35.066 UTC DEBUG PureCloudAgentSession PureCloud-rajat1 - initialized session for agent rajat1
2023-06-13_14:58:35.066 UTC DEBUG PureCloudAgentSession PureCloud-rajat1 - Added processor session listener com.openmethods.iserver.processor.purecloud.PureCloudProcessor@272c9f68. Total listeners: 1
2023-06-13_14:58:35.066 UTC DEBUG PureCloudProcessor PureCloud - added session PureCloud-rajat1 to {PureCloud-vishal=com.openmethods.iserver.processor.purecloud.PureCloudAgentSession@1c642be6, PureCloud-rajat1=com.openmethods.iserver.processor.purecloud.PureCloudAgentSession@56ac6195}
2023-06-13_14:58:35.066 UTC DEBUG PureCloudProcessor PureCloud - added session PureCloud-rajat1. Total sessions: 2
2023-06-13_14:58:35.066 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Queued Response: {"messageType":"serviceResponse","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36","requestId":"5b21f472-c7d2-41ae-91e2-a42813beeade","response":{"command":"prepareSession","result":"success","resource":{"id":"PureCloud-rajat1"},"data":{"agent":{"id":"rajat1","password":"snu6XMUjEBstKXGhLkVQ0qvnGxQ3OwddLXgfobUpK2yW1Xql-b8uAf0nlJ4q4UpFowYCUUe1_UX6qHNdy8PP5w"},"model":"RNA-PureCloud","override":true,"cti":"e70f36a4-982f-47e2-9420-780ebe581f36"}}}
2023-06-13_14:58:35.066 UTC DEBUG WorkEngine DirectClients.5 - Item 0 done in 303 InboundMessage: {"requestId":"5b21f472-c7d2-41ae-91e2-a42813beeade","request":{"command":"prepareSession","data":{"agent":{"id":"rajat1","password":"snu6XMUjEBstKXGhLkVQ0qvnGxQ3OwddLXgfobUpK2yW1Xql-b8uAf0nlJ4q4UpFowYCUUe1_UX6qHNdy8PP5w"},"model":"RNA-PureCloud","override":true,"cti":"e70f36a4-982f-47e2-9420-780ebe581f36"}},"messageType":"serviceRequest","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36"}
2023-06-13_14:58:35.067 UTC DEBUG WorkEngine DirectClients.5 - Finished with queue processing
2023-06-13_14:58:35.067 UTC DEBUG WorkEngine DirectClients.5 - Removing queue lock for media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:35.067 UTC DEBUG WorkEngine DirectClients.5 - Going back to idle pool |
The media bar retrieves information from the processor component about its capabilities (lines 1-13). It then initiates a new agent session with the processor using the “prepareSession” command (line 14). The processor starts the process of logging the agent into the telephony platform.
Code Block |
---|
2023-06-13_14:58:35.176 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Request Received: {"messageType":"coreRequest","requestId":"56475f8b-a24e-4d1d-8b2c-fc9281561a45","command":"bindResource","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36","resourceId":"PureCloud-rajat1"}
2023-06-13_14:58:35.176 UTC DEBUG WorkEngine DirectClients - Inspecting Queue: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound Size: 1
2023-06-13_14:58:35.176 UTC DEBUG WorkEngine DirectClients - Dequeued 1 items from media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:35.176 UTC DEBUG WorkEngine DirectClients - Looking for idle thread
2023-06-13_14:58:35.177 UTC DEBUG WorkEngine DirectClients.1 - Processing: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound 1
2023-06-13_14:58:35.177 UTC DEBUG WorkEngine DirectClients.1 - Item: 0 Age: 1 InboundMessage: {"messageType":"coreRequest","requestId":"56475f8b-a24e-4d1d-8b2c-fc9281561a45","command":"bindResource","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36","resourceId":"PureCloud-rajat1"}
2023-06-13_14:58:35.177 UTC DEBUG NetworkSession media-bar rajat.gupta@openmethods.com - Dispatching Message:
{"messageType":"coreRequest","requestId":"56475f8b-a24e-4d1d-8b2c-fc9281561a45","command":"bindResource","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36","resourceId":"PureCloud-rajat1"}
2023-06-13_14:58:35.177 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Queued Response: {"messageType":"coreResponse","requestId":"56475f8b-a24e-4d1d-8b2c-fc9281561a45","command":"bindResource","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36","resourceId":"PureCloud-rajat1","resourceName":"PureCloud-rajat1","resourceType":"com.openmethods.iserver.processor.session","result":"success"}
2023-06-13_14:58:35.177 UTC DEBUG WorkEngine DirectClients.1 - Item 0 done in 0 InboundMessage: {"messageType":"coreRequest","requestId":"56475f8b-a24e-4d1d-8b2c-fc9281561a45","command":"bindResource","serviceId":"e70f36a4-982f-47e2-9420-780ebe581f36","resourceId":"PureCloud-rajat1"}
2023-06-13_14:58:35.177 UTC DEBUG WorkEngine DirectClients.1 - Finished with queue processing
2023-06-13_14:58:35.177 UTC DEBUG WorkEngine DirectClients.1 - Removing queue lock for media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:35.177 UTC DEBUG WorkEngine DirectClients.1 - Going back to idle pool
2023-06-13_14:58:35.249 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Request Received: {"messageType":"coreRequest","requestId":"1b37e286-1d45-4e53-8d29-5ab8bdf51050","command":"bindResource","serviceId":"WorkflowManager","resourceId":"PureCloud-rajat1"}
2023-06-13_14:58:35.249 UTC DEBUG WorkEngine DirectClients - Inspecting Queue: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound Size: 1
2023-06-13_14:58:35.249 UTC DEBUG WorkEngine DirectClients - Dequeued 1 items from media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:35.249 UTC DEBUG WorkEngine DirectClients - Looking for idle thread
2023-06-13_14:58:35.249 UTC DEBUG WorkEngine DirectClients.2 - Processing: media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound 1
2023-06-13_14:58:35.250 UTC DEBUG WorkEngine DirectClients.2 - Item: 0 Age: 0 InboundMessage: {"messageType":"coreRequest","requestId":"1b37e286-1d45-4e53-8d29-5ab8bdf51050","command":"bindResource","serviceId":"WorkflowManager","resourceId":"PureCloud-rajat1"}
2023-06-13_14:58:35.250 UTC DEBUG NetworkSession media-bar rajat.gupta@openmethods.com - Dispatching Message:
{"messageType":"coreRequest","requestId":"1b37e286-1d45-4e53-8d29-5ab8bdf51050","command":"bindResource","serviceId":"WorkflowManager","resourceId":"PureCloud-rajat1"}
2023-06-13_14:58:35.250 UTC INFO View initial - Entered State: initial
2023-06-13_14:58:35.250 UTC INFO WorkflowSession PureCloud-rajat1 - Client Event: state.updated
{"messageType":"stateEvent","target":"PureCloud-rajat1","name":"state.updated","context":{},"data":[{"name":"session.logout","type":"disable"},{"name":"session.login","type":"enable"}]}
2023-06-13_14:58:35.250 UTC DEBUG NetworkClient media-bar rajat.gupta@openmethods.com - Queued Response: {"messageType":"coreResponse","requestId":"1b37e286-1d45-4e53-8d29-5ab8bdf51050","command":"bindResource","serviceId":"WorkflowManager","resourceId":"PureCloud-rajat1","resourceName":"PureCloud-rajat1","resourceType":"com.openmethods.iserver.workflow.session","result":"success"}
2023-06-13_14:58:35.250 UTC DEBUG WorkEngine DirectClients.2 - Item 0 done in 1 InboundMessage: {"messageType":"coreRequest","requestId":"1b37e286-1d45-4e53-8d29-5ab8bdf51050","command":"bindResource","serviceId":"WorkflowManager","resourceId":"PureCloud-rajat1"}
2023-06-13_14:58:35.250 UTC DEBUG WorkEngine DirectClients.2 - Finished with queue processing
2023-06-13_14:58:35.250 UTC DEBUG WorkEngine DirectClients.2 - Removing queue lock for media-bar rajat.gupta@openmethods.com.9b5847bb-d944-4ac2-9eb5-ffb22b91df87.inbound
2023-06-13_14:58:35.250 UTC DEBUG WorkEngine DirectClients.2 - Going back to idle pool |
As the session is created, a new processor session resource and workflow session resource are created and need to be bound to just like the processor and workflow services.