" /> Take an action after the agent answer the call in the Strategy - Genesys CTI User Forum

Author Topic: Take an action after the agent answer the call in the Strategy  (Read 2569 times)

Offline Baraa

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Advertisement
Hello to all

How can i implement a specific action in IRD Strategy after an agent only answer the call .

Thanks,
Baraa

Offline Tambo

  • Sr. Member
  • ****
  • Posts: 456
  • Karma: 5
Re: Take an action after the agent answer the call in the Strategy
« Reply #1 on: August 10, 2017, 09:36:20 AM »
eh?

Offline Baraa

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Take an action after the agent answer the call in the Strategy
« Reply #2 on: August 10, 2017, 10:29:02 AM »

If the agent answered the call , i want to insert record to database.

Currently , if the call is assigned to an agent , the record is inserted regardless the agent answered or not .

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Take an action after the agent answer the call in the Strategy
« Reply #3 on: August 10, 2017, 12:48:08 PM »
Do it after the Target block

Enviado de meu E6633 usando Tapatalk


Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Take an action after the agent answer the call in the Strategy
« Reply #4 on: August 10, 2017, 07:53:39 PM »
- Configure SIP server to distribute EventRouteUsed only after agent answer call. Then in strategy do it after Target selection block
or alternatively
- After Target selection block SuspendForEvent EventEstablished and perform action only after event is received (URS should be configured to register on agent's DNs)
or alternatively
- Load on agent DNs separate helping strategy that will insert needed records in DB when agent answer a call. If needed main routing strategy can attach before
    routing all "binding" data needed for helping strategy (again URS has to be registered on agent DNs)
or alternatively
  - Use in strategy instead of target selection objects "raw" functions SelectDN, SuspendForDN, RouteCall/DeliverCall. Use function DeliverCall once agent is selected.
    And if it successfully returns then call function Routed[] (to signal to URS routing was done) and perform db updating (again URS has to be registered on agent DNs).
 

Offline Baraa

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Take an action after the agent answer the call in the Strategy
« Reply #5 on: August 13, 2017, 08:25:52 AM »

Thank you @[b]terry[/b] for your response  :)

Regarding first alternative Could you tell me the below configuration is right ?

divert-on-ringing : false
sip-enable-aoc-after-established : true

Also , I appreciate your support to clarify me how to configure URS Server if I implement the others alternatives .

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Take an action after the agent answer the call in the Strategy
« Reply #6 on: August 13, 2017, 11:59:19 PM »
Up to my knowledge divert-on-ringing should be enough.

In other approaches to male URS register on agents DNs set directly in annexes of DN object in section with name __ROUTER__ (or in section with the same name as URS application) the option event_arrive  to established (or it can be set directly on URS and will be applied to all agents DN).

If needed set option strategy to name of strategy to be executed when call landed on DN (if it approach with strategy).
Option unloaded_cdn better to be ignore or defaultignore for URS to not interfere with call on agents DN when there is no strategy involved.

Offline Baraa

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Take an action after the agent answer the call in the Strategy
« Reply #7 on: August 14, 2017, 11:05:30 AM »

Dear terry,

Which DN that I could set event_arrive  to established on it which the strategy is loaded on it  or what .

Thanks in advance  :)

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Take an action after the agent answer the call in the Strategy
« Reply #8 on: August 14, 2017, 05:24:48 PM »
On DN where agent answer the call. It will allow functions like SuspendForEvent, DeliverCall to work.
If needed URS do something when agent answer ("independently" from strategy sending call to the agent) - the same DN also might have option strategy with value of strategy to execute when agent answer.