" /> Monitoring Interaction Queue with ORS - Genesys CTI User Forum

Author Topic: Monitoring Interaction Queue with ORS  (Read 8520 times)

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Monitoring Interaction Queue with ORS
« on: October 16, 2013, 01:44:21 PM »
Advertisement
Hi All

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:

[code]
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
[/code]

In case of voice interaction and routing point ORS works. May be I'm lose something important in configuration?  ???

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Monitoring Interaction Queue with ORS
« Reply #1 on: October 21, 2013, 01:14:33 PM »
no one use ORS with multimedia?

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Monitoring Interaction Queue with ORS
« Reply #2 on: October 22, 2013, 06:35:09 PM »
Hi,

Have you read "Configuring ORS to Operate with eServices Interactions" section in the Orchestration Server 8.1 Deployment Guide?

R.


Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Monitoring Interaction Queue with ORS
« Reply #3 on: October 23, 2013, 07:05:43 AM »
[quote author=René link=topic=8043.msg35424#msg35424 date=1382466909]
Hi,

Have you read "Configuring ORS to Operate with eServices Interactions" section in the Orchestration Server 8.1 Deployment Guide?

R.
[/quote]

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.

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Monitoring Interaction Queue with ORS
« Reply #4 on: October 23, 2013, 09:28:53 AM »
Sorry. I missed this in your log snippet...

Have you associated your Interaction Queue with a View?

R.

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Monitoring Interaction Queue with ORS
« Reply #5 on: October 23, 2013, 11:07:45 AM »
[quote author=René link=topic=8043.msg35431#msg35431 date=1382520533]
Sorry. I missed this in your log snippet...

Have you associated your Interaction Queue with a View?

R.
[/quote]

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?

Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: Monitoring Interaction Queue with ORS
« Reply #6 on: October 24, 2013, 11:29:20 AM »
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

[code]
13:09:56.083 [ITXMAN]: 'xxxx' queue managed by Orchestration
[/code]

In 8.1.3 You also need to configure option  mcr-pull-by-this-node = true.  Correct event sequence should look like this:

[code]
13:22:36.393 Trc 04541 Message EventInteractionSubmitted received from 'IXN_SIP_PRI'
attr_extension [bstr] = TKVList:
  'ReportingEventSequenceNumber' [str] = "17838105"
attr_actor_type [int] = 3 [MEDIA SERVER]
attr_actor_media_server_id [str] = "SMS_PRI"
attr_itx_id [str] = "023GCP2JD3P9C005"
attr_state [int] = 0
attr_itx_type [str] = "Inbound"
attr_itx_subtype [str] = "InboundNew"
attr_itx_queue [str] = "Default Inbound SMS Queue"
attr_itx_media_type [str] = "sms"
attr_itx_tenant_id [int] = 102
attr_itx_received_at [str] = "2013-10-24T11:22:36Z"
attr_itx_submitted_at [str] = "2013-10-24T11:22:36Z"
attr_itx_placed_in_queue_at [str] = "2013-10-24T11:22:36Z"
attr_itx_submitted_by [str] = "SMS_PRI"
attr_itx_is_online [int] = 0
attr_itx_is_locked [int] = 0
attr_itx_moved_to_queue_at [str] = "2013-10-24T11:22:36Z"
attr_itx_submit_seq [str] = "17838104"
attr_itx_place_in_queue_seq [str] = "17838104"
attr_event_time [str] = "2013-10-24T11:22:36Z"

13:22:36.393 [MCR] Creating new call[ 023GCP2JD3P9C005 ]
13:22:36.393 [ORSCallMonitor] OnCallCreated
13:22:36.393 ORSFmInteraction::HandleCallCreated: CallID=023GCP2JD3P9C005
13:22:36.393 ors:+ORSFmInteractionData[0x0000000006df3e80]:IxnGUID=023GCP2JD3P9C005
13:22:36.393 [ORSCallMonitor] OnCallInitIndex
13:22:36.393 [ORSCallMonitor] OnCallCreatedEx
13:22:36.393 [ORSCallMonitor] OnPartyCreated
13:22:36.393 MCRCALL[023GCP2JD3P9C005]: party 'Default Inbound SMS Queue'[00000000071d7f80] added
13:22:36.393 [PI_Manager] Adding ref; event->EventInteractionSubmitted, itx_id->023GCP2JD3P9C005
13:22:36.393 [PI Manager] pi_collection:add_ref, ref[023GCP2JD3P9C005] will be added
13:22:36.393 [ORSCallMonitor] OnPartyAdded
13:22:36.393 [IDX]: >> GET >> FMID=023GCP2JD3P9C005 NOT FOUND
13:22:36.393 [ORSCallMonitor] OnPartyIndexSet
13:22:36.393 [ORSCallMonitor] OnPartyStateChanged
13:22:36.393 ORSFmInteraction::HandlePartyStateChanged: 'null' --> 'queued'
13:22:36.393 [IDX]: >> GET >> FMID=023GCP2JD3P9C005 NOT FOUND
13:22:36.393 MCRCP: Process is_online attribute; Storing a new value '0'
13:22:36.393 [ORSCallMonitor] OnCallInfoChangedEx
13:22:36.740 Trc 04541 Message EventTakenFromQueue received from 'IXN_SIP_PRI'
[/code]

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Monitoring Interaction Queue with ORS
« Reply #7 on: October 24, 2013, 01:45:26 PM »
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:

[code]
[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
[/code]

ITXMAN watching my queue, but doesn't pull interaction from it:

[code]
[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
[/code]

btw, from your log it's not clear what ORS do next after EventInteractionSubmitted received. Does the next message in your log  EventTakenFromQueue [glow=red,2,300]received[/glow] related to submitted interaction?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: Monitoring Interaction Queue with ORS
« Reply #8 on: October 24, 2013, 01:52:32 PM »
From ORS deployment guide:

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

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Monitoring Interaction Queue with ORS
« Reply #9 on: October 24, 2013, 02:02:27 PM »

really, my fault... going to check all ORS options again.

[quote author=Kubig link=topic=8043.msg35448#msg35448 date=1382622752]
From ORS deployment guide:
orchestration/ mcr-pull-by-this-node = true
[/quote]

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Monitoring Interaction Queue with ORS
« Reply #10 on: October 24, 2013, 03:24:31 PM »
didn't help :(

Offline bublepaw

  • Sr. Member
  • ****
  • Posts: 283
  • Karma: 10
Re: Monitoring Interaction Queue with ORS
« Reply #11 on: October 24, 2013, 07:35:05 PM »
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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Monitoring Interaction Queue with ORS
« Reply #12 on: October 24, 2013, 08:42:43 PM »
??? Fake app?

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Monitoring Interaction Queue with ORS
« Reply #13 on: October 25, 2013, 06:52:09 AM »
[quote author=cavagnaro link=topic=8043.msg35462#msg35462 date=1382647363]
??? Fake app?
[/quote]

yep, cavagnaro. the same way how interaction server is configured for icon.

Offline smile

  • Sr. Member
  • ****
  • Posts: 286
  • Karma: 6
Re: Monitoring Interaction Queue with ORS
« Reply #14 on: October 28, 2013, 12:53:00 PM »
bublepaw, could you show ORS log when your scxml application is started? what happens between interaction submitted in queue and scxml is executed?