Can’t find why orchestration doesn’t pull interaction from queue. I wrote simple scxml application (without composer), created interaction queue in Administrator and assign enhanced routing script to queue.
ORS see interaction in queue, but doesn’t start scxml application:
17:19:49.336 Trc 04541 Message EventInteractionSubmitted received from 'TServer_dummy_INS_p'
attr_extension [bstr] = TKVList:
'ReportingEventSequenceNumber' [str] = "111712885"
attr_actor_type [int] = 3 [MEDIA SERVER]
attr_actor_media_server_id [str] = "OCS_p"
attr_itx_id [str] = "0300MH2J8MBFA3YA"
attr_state [int] = 0
attr_itx_type [str] = "Internal"
attr_itx_subtype [str] = "OutboundNew"
attr_itx_queue [str] = "ProactiveEmail_ORS"
attr_itx_media_type [str] = "outboundpreview"
...
17:19:49.336 [MCR] Creating new call[ 0300MH2J8MBFA3YA ]
17:19:49.336 [MCRCallStorage] Adding call to call storage, the total will be: 150
17:19:49.336 [ORSCallMonitor] OnCallCreated
17:19:49.336 ORSFmInteraction::HandleCallCreated: CallID=0300MH2J8MBFA3YA
17:19:49.336 [ORSCallMonitor] OnCallInitIndex
17:19:49.336 [ORSCallMonitor] OnCallCreatedEx
17:19:49.336 [ORSCallMonitor] OnPartyCreated
17:19:49.336 MCRCALL[0300MH2J8MBFA3YA]: party 'ProactiveEmail_ORS'[9478b30] added
17:19:49.336 [PI_Manager] Adding ref; event->EventInteractionSubmitted, itx_id->0300MH2J8MBFA3YA
17:19:49.336 [PI Manager] pi_collection:add_ref, ref[0300MH2J8MBFA3YA] will be added
17:19:49.336 [ORSCallMonitor] OnPartyAdded
17:19:49.336 ors:+ORSFmInteractionData[0xb0e4c08]:IxnGUID=0300MH2J8MBFA3YA
17:19:49.336 [IDX]: >> GET >> FMID=0300MH2J8MBFA3YA NOT FOUND
17:19:49.336 [ORSCallMonitor] OnPartyIndexSet
17:19:49.336 [ORSCallMonitor] OnPartyStateChanged
17:19:49.336 ORSFmInteraction::HandlePartyStateChanged: 'null' --> 'queued'
17:19:49.336 MCRCP: Process is_online attribute; Storing a new value '0'
17:19:49.336 [ORSCallMonitor] OnCallInfoChangedEx
In case of voice interaction and routing point ORS works. May be I’m lose something important in configuration? ???
definitely. I use fake tserver, the same one which is configured for icon/gim reporting. Message in log ‘…received from ‘TServer_dummy_INS_p’’ illustrate it.
This is good question! I read from deployment guide that queue must have at least one view. So i created one view for particular queue in IRD. But this view doesn’t connected to any script or strategy, and i can’t assign enhanced routing script to view, only to interaction queue. Do i right understand that routing script assigned to queue and i don’t need to set any additional options to view?
I did some test and I has similar problem but it was related to fact that same queue had both submitter from IRD and ORS configuration. In general process should be following:
create new queue
associate ors app with queue
and done it should work (restart ORS just in case). In ORS logs You should see something like this
13:09:56.083 [ITXMAN]: 'xxxx' queue managed by Orchestration
In 8.1.3 You also need to configure option mcr-pull-by-this-node = true. Correct event sequence should look like this:
bublepaw, at which section option ‘mcr-pull-by-this-node’ should be added? i didn’t find it in guides.
I’ve made test again, option was added into section ‘orchestration’, but it even doesn’t appear in log.
Piece of log whe ORS start:
[SessionManager]: adding script [Chat_Test_Queue] of type [23] associated with DBID[849] from tenant [101]
[ITXMAN]: 'Chat_Test_Queue' queue managed by Orchestration
[MCR DEVMAN] mcr device 'Chat_Test_Queue'(849) added
Trc 20008 Configuration object CfgScript received. DBID 849, name Chat_Test_Queue
[SessionManager]: adding script [test_chat] of type [6] associated with DBID[851] from tenant [101]
Trc 20008 Configuration object CfgScript received. DBID 851, name test_chat
Trc 20008 Configuration object CfgScript received. DBID 852, name Chat_Test_Queue/View1
ITXMAN watching my queue, but doesn’t pull interaction from it:
[MCR] Creating new call[ 0003Ca94BVTNXTAM ]
[ORSCallMonitor] OnCallCreated
ORSFmInteraction::HandleCallCreated: CallID=0003Ca94BVTNXTAM
[ORSCallMonitor] OnCallInitIndex
[ORSCallMonitor] OnCallCreatedEx
[ORSCallMonitor] OnPartyCreated
MCRCALL[0003Ca94BVTNXTAM]: party 'Chat_Test_Queue'[906c490] added
[PI_Manager] Adding ref; event->EventInteractionSubmitted, itx_id->0003Ca94BVTNXTAM
[PI Manager] pi_collection:add_ref, ref[0003Ca94BVTNXTAM] will be added
[ORSCallMonitor] OnPartyAdded
ors:+ORSFmInteractionData[0x9047958]:IxnGUID=0003Ca94BVTNXTAM
[IDX]: >> GET >> FMID=0003Ca94BVTNXTAM NOT FOUND
[ORSCallMonitor] OnPartyIndexSet
[ORSCallMonitor] OnPartyStateChanged
ORSFmInteraction::HandlePartyStateChanged: 'null' --> 'queued'
MCRCP: Process is_online attribute; Storing a new value '1'
[ORSCallMonitor] OnCallInfoChangedEx
btw, from your log it’s not clear what ORS do next after EventInteractionSubmitted received. Does the next message in your log EventTakenFromQueue received related to submitted interaction?
mcr-pull-by-this-node
Option section: orchestration
Configuration object: ORS Application object
Default value: false
Valid values: true or false.
Value changes: in setting the next timer interval
This option specifies that the pulling of eServices interactions will be allowed to
be performed by this node if set to true. Note that by default this option is set to
false, so if the default is left on all nodes, no pulling will occur. Note that this also
allows more than one node to pull interactions.
For example:
orchestration/ mcr-pull-by-this-node = true
Hmmm - how many connections You have to IXN - for latest version I had to configure 2 - one for fake app and one for normal app but I am not sure it this is what helped. I know that I did all configuration from Administrator - I didn’t touch this ors queue in IRD, even view was created in Composer.