Author Topic: Dynamic Sliding TimeProfile get error when using PSDK  (Read 2738 times)

Offline JungGiCho

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Dynamic Sliding TimeProfile get error when using PSDK
« on: February 18, 2016, 04:24:15 AM »
Hi All,

I am developing PSDK Statserver client with 'Dynamic Time Profile'.
But I' getting error for only Sliding Dynamic TimeProfile.
Growing timeprofile works file.

Below is statserver log generating error.
Any ideas what' wrong?

Thanks you all in advance.

-----------------------------------------------------------------------
statserver version is 8.1.200.44,
and psdk lib version is  8.5.200.03

2016-02-18 12:39:59.351> Client: Message 'OpenStat'
        'REQ_ID'        123
        'INSENS_PERCENTAGE'    1
        'NOTIFICATION_MODE'    'ChangesBasedNotification' (0)
        'OBJECT_ID'    '56268@CBPBX'
        'OBJECT'        'Queue' (5)
        'TENANT_ID'    'Resources'
        'DistByConnID'  0
        'INTERVAL'      'Sliding' (2)
        'SUBJECT'      'DNAction' (0)
        'CATEGORY'      'ExpectedWaitTime' (33)
        'DYNAMIC_TIME_PROFILE'  '600:10'
        'DYNAMIC_FILTER'        'DNIS!= ""'
[color=red][b]12:39:59.351 Std 10040 Statistics specification error (client='winker', request_id=123, user_request_id=-1): 'Incorrect 'tmLength' Parameter: 0'[/b][/color]
2016-02-18 12:39:59.351> Client: Sending message to skt_winker_cpms_P(28)
2016-02-18 12:39:59.351> Client: Message 'Error' [stats:00000000000000000000000000000000]
        'STRING_VALUE'  'Incorrect 'tmLength' Parameter: 0'
        'LONG_VALUE'    11
        'TM_LENGTH'    0
        'TM_SERVER'    1455766799
        'USER_REQ_ID'  -1
        'REQ_ID'        123
        'MainMask'      all actions clear except for
                        'CallWait' (9)
                        'CallReleased' (50)
                        'CallMissed' (51)
                        'ACWCompleted' (52)
                        'ACWMissed' (53)
                        'AgentLogin' (54)
                        'AgentActive' (55)
                        'AgentReady' (56)
        'RelMask'      all actions clear except for
                        'CallEntered' (10)

« Last Edit: February 18, 2016, 04:28:19 AM by JungGiCho »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Dynamic Sliding TimeProfile get error when using PSDK
« Reply #1 on: February 18, 2016, 11:50:30 AM »
What is a "dynamic" time profile??

From where did you get these parameters?
  'DYNAMIC_TIME_PROFILE'  '600:10'
        'DYNAMIC_FILTER'        'DNIS!= ""'

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: Dynamic Sliding TimeProfile get error when using PSDK
« Reply #2 on: February 18, 2016, 01:11:36 PM »
Try calling the setIntervalLength(int) method of your StatisticMetricEx object
« Last Edit: February 18, 2016, 01:13:18 PM by hsujdik »

Offline JungGiCho

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Dynamic Sliding TimeProfile get error when using PSDK
« Reply #3 on: February 19, 2016, 10:24:41 AM »
[quote author=hsujdik link=topic=9371.msg42322#msg42322 date=1455801096]
Try calling the setIntervalLength(int) method of your StatisticMetricEx object
[/quote]

Thanks hsujdik !

setIntervalLength function works perfect.
Below is statserver log working good.


2016-02-19 19:17:21.373> Client: Message 'OpenStat'
        'REQ_ID'        123
        'INSENS_PERCENTAGE'    1
        'NOTIFICATION_MODE'    'ChangesBasedNotification' (0)
        'TM_NOTIFICATION_FREQ'  1
        'OBJECT_ID'    '56268@CBPBX'
        'OBJECT'        'Queue' (5)
        'TENANT_ID'    'Resources'
        'DistByConnID'  0
        'INTERVAL'      'Sliding' (2)
        'SUBJECT'      'DNAction' (0)
        'TM_LENGTH'    600
        'CATEGORY'      'ExpectedWaitTime' (33)
        'DYNAMIC_TIME_PROFILE'  '600:2'
        'DYNAMIC_FILTER'        'DNIS!= ""'
        'MainMask'      all actions clear except for
                        'CallWait' (9)
                        'CallReleased' (50)
                        'CallMissed' (51)
                        'ACWCompleted' (52)
                        'ACWMissed' (53)
                        'AgentLogin' (54)
                        'AgentActive' (55)
                        'AgentReady' (56)
        'RelMask'      all actions clear except for
                        'CallEntered' (10)

2016-02-19 19:17:21.373> Client: Sending message to cpms_P(28)
2016-02-19 19:17:21.373> Client: Message 'StatOpened' [stats:ba1cca5290728c4e80a4ac7a7dd7e2a7]
        'LONG_VALUE'    0
        'TM_LENGTH'    0
        'TM_SERVER'    1455877041
        'USER_REQ_ID'  -1
        'REQ_ID'        123