" /> OnCallAbandoned function - Genesys CTI User Forum

Author Topic: OnCallAbandoned function  (Read 21023 times)

Offline S

  • Full Member
  • ***
  • Posts: 135
  • Karma: 1
OnCallAbandoned function
« on: November 25, 2008, 07:12:11 PM »
Advertisement
Did anyone use the OnCallAbandoned function in strategy?

this is what I did and it did not work...

Call comes to a RP where strategy is loaded, the strategy has one business rule for chking a KVP on call data, if satisfied- goes to agent, if not ... I put a function block there and used OnCallAbandoned function and selected another strategy as a script ( which just prints out the strategy name with connid in logs) and exit block.

Although the call goes through the function object, it does not call the strategy nor executes it( which the document says would do- unless I understood it wron :(  )

So- what did I do wrong? what should I be doing to use that function?
Please help

S

Offline Dionysis

  • Sr. Member
  • ****
  • Posts: 408
  • Karma: 8
Re: OnCallAbandoned function
« Reply #1 on: November 25, 2008, 08:23:29 PM »
I use this function in every strategy I build.  The OnCallAbandoned function should be called at the very beginning of the main strategy.

Then, if the call is abandoned at any time during the main strategy it will call the "Abandon Strategy". 


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: OnCallAbandoned function
« Reply #2 on: November 25, 2008, 08:27:03 PM »
On CallAbandon only works and is executed when caller abandons the call, this means when user is in the process of the strategy or waiting for an agent and then hangs up. Why a function? If your IF condition doesn't satisfy you can put another target object and then call another RP or use the sub-strategy function to call a sub-strategy inside your main strategy.

Offline peters

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: OnCallAbandoned function
« Reply #3 on: November 27, 2008, 03:49:51 PM »
My experience is, that this function is called as you describe, but not in case, when the call is already ringing on the agent. If client abandons the call during ringing, the function won't be called. That's a pity.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: OnCallAbandoned function
« Reply #4 on: November 27, 2008, 06:03:45 PM »
That is ok as the call is no longer on the RP, it has been distributed. You can control using URS options.

Offline peters

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: OnCallAbandoned function
« Reply #5 on: November 27, 2008, 06:11:50 PM »
Is there a way? I would like to run a strategy when call is abandoned, also if it is in ringing state.

Is it possible, to have different abandon strategies for different RP?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: OnCallAbandoned function
« Reply #6 on: November 28, 2008, 01:32:44 AM »
Not strategies but you can re-route the call

Offline jbobinsk

  • Jr. Member
  • **
  • Posts: 87
  • Karma: 1
Re: OnCallAbandoned function
« Reply #7 on: November 28, 2008, 08:42:03 AM »
Of course it is possible to have strategy and execute it when call is abandoned. You have to be avare that such strategy can only operate on call data and nothing else.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: OnCallAbandoned function
« Reply #8 on: November 28, 2008, 06:37:43 PM »
Run a strategy when the call is on agent? How?

Offline barleycorn

  • Jr. Member
  • **
  • Posts: 73
  • Karma: 2
Re: OnCallAbandoned function
« Reply #9 on: November 28, 2008, 07:17:07 PM »
Not sure if it would apply to this particular function, but you can load a strategy on a regular agent extension. For instance, if you wanted to simulate a RONA-style reaction, you could create a strategy for this purpose, and load it on to the extension.
To allow URS to monitor DNs it normally wouldn't, you can add a section in the Annex tab of that DN with the name of the URS application object, inside that section place an option: event_arrive=ringing
Then you can load a strategy on to that DN.

Offline barleycorn

  • Jr. Member
  • **
  • Posts: 73
  • Karma: 2
Re: OnCallAbandoned function
« Reply #10 on: November 29, 2008, 12:15:34 AM »
btw Cav.... I may have missed something having been involved in a very busy project recently. Your karma... how did it get to -978???!!??!1?  ;-)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: OnCallAbandoned function
« Reply #11 on: November 29, 2008, 04:41:21 AM »
hahahaha I have no idea, however I suspect someone played with the forum DB intentionally...however I was -989 so I'm progressing lol  ;D If I reach 0 some day will be a hero! lol

Offline peters

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: OnCallAbandoned function
« Reply #12 on: December 04, 2008, 09:46:01 AM »
So if i would like to achieve this scenario:

1. call is ringing on agent, and client drops call before the agent manages to pick up
2. the OnCallAbandon function is not called, because the interaction was outside of URS.

what is needed to be set up, to execute OnCallAbandon (or some other function), which will run strategy that collects information of dropped calls to database (ANI, DNIS, time, date)

When call is dropped in IVR, queue, OnCallAbandon is executed correctly.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: OnCallAbandoned function
« Reply #13 on: December 04, 2008, 10:24:52 AM »
You can try to do what barleycorn says. Other way I don't see any option.

Offline peters

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: OnCallAbandoned function
« Reply #14 on: December 04, 2008, 03:01:52 PM »
It works...partially. You have to put pause block at the end of OnCallAbandon strategy. But it doesn't work correctly. Lets say the timeout for ringing is 15sec (afterward call is routed on another agent). If you put pause_time = 15sec and agent picks up call immediately, than finishes call in 5 sec, then OnCallAbandoned function is executed. If you don't put pause block, then it isn't executed at all - even if call is abandoned in ringing state.

Peter