Hi,
We have a strategy loaded on extensions with event_arrive=ringing. It is a simple RONA strategy, which will read a timeout configured in station/tenant Annex and apply SuspendForEvent(EventEstablished) for that timeout period. If times out, call is redirected and agent is made not ready.
The problem we are seeing: if the call is answered very fast or auto answer is activated (we do switch b/w auto/manual), EventEstablished is received without time & before the SuspendForEvent triggered. So, the call is with agent, and because there is no further EventEstablished, active call is getting redirected as per the logic.
Is there any way to know from strategy if the call is already answered? or anything else to detect the above?
Sample log:
_I_I_007001ad4a0775d5 [14:33] strategy: *0x65*RONA_LOAD is attached to the call
14:04:23.687 Int 20001 interaction 007001ad4a0775d5 is started
14:04:23.687_I_I_007001ad4a0775d5 [09:06] >>>>>>>>>>>>start interpretator
_I_I_007001ad4a0775d5 [09:04] ASSIGN: __Return(SCRIPT) <- STRING:
_I_I_007001ad4a0775d5 [07:46] no error mode for this call
_I_I_007001ad4a0775d5 [09:04] ASSIGN: __TargetVar(SCRIPT) <- STRING:
14:04:23.687_I_I_007001ad4a0775d5 [07:37] HERE IS BUSINESS RULE RONA_LOAD
14:04:23.687_I_I_007001ad4a0775d5 [07:48] function will be continued(0,857735177)<--Not sure why we get this
14:04:23.687_I_I_007001ad4a0775d5 [09:04] <<<<<<<<<<<<suspend interpretator(JUMPING), timers:00001
14:04:23.688_T_I_007001ad4a0775d5 [14:0c] EventEstablished is received for tserver
14:04:23.688_I_I_007001ad4a0775d5 [07:49] function is continued(0,857735177)<--Now it starts again
_I_I_007001ad4a0775d5 [07:42] jump to strategy *0x65*C_RONA
14:04:23.688_I_I_007001ad4a0775d5 [09:06] >>>>>>>>>>>>start interpretator
_I_I_007001ad4a0775d5 [09:04] ASSIGN: __Return(SCRIPT) <- STRING:
_I_I_007001ad4a0775d5 [07:46] no error mode for this call
_I_I_007001ad4a0775d5 [09:04] ASSIGN: __Return(SCRIPT) <- STRING:
_I_I_007001ad4a0775d5 [09:04] ASSIGN: stationType(LOCAL) <- STRING: Regular
_I_I_007001ad4a0775d5 [09:04] ASSIGN: timeout(LOCAL) <- STRING: 15000
-->SuspendForEvent applied here<--
Thanks in advance.