" /> Calling a web service after the released - Genesys CTI User Forum

Author Topic: Calling a web service after the released  (Read 1893 times)

Offline Burak

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Calling a web service after the released
« on: August 10, 2020, 02:21:57 PM »
Advertisement
Hi dear all,
We need to call a web service after the agents finish the call. I add the web service block after the target block in the strategy, but the problem is the system is calling this web service block before the call released. I know I can do this by customizing WDE(calling the web service on the WDE) But I want to do that on the strategy. Is there any way to do that?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Calling a web service after the released
« Reply #1 on: August 10, 2020, 03:46:33 PM »
If it is SIP Server maybe a divert on the RP as the survey parameter after-call-divert-destination

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Calling a web service after the released
« Reply #2 on: August 12, 2020, 12:54:00 AM »
Might try to load extra strategy directly on agents DNs and wait after it starts for EventReleased.
Or may be (if it is URS strategy) - try in post routing for SuspendForEvent[timeout. EventReleased, ''] (and aet options call_monitoring to true and hanged_call_time to be bigger then agent talking time).

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Calling a web service after the released
« Reply #3 on: August 12, 2020, 02:19:16 PM »
As usual awesome Terry...
How do to command a DN strategy to start after certain event?


As for your second suggestion...how do they interact between them?
As for what I understand in documentation, call_monitoring is to monitor non CfgServer registered DNs...

Offline terry

  • Sr. Member
  • ****
  • Posts: 328
  • Karma: 35
Re: Calling a web service after the released
« Reply #4 on: August 12, 2020, 06:03:31 PM »
For first way - URS first need to be registered on agent DN. For that URS option () on agents DNs event_arrive need to be set to something like established.
Will make URS register on this DN and start strategy (if such happen to be loaded on this DN)  if it get EventEstablished on this DN basically exactly like for RP just here you specify on which event to stat strategy (none, ringing, established).

For second approach - either again - URS need to be able to get EventReleased for the call - either again by making URS register on all agent DNs or alternatively setting call_monitoring option - one of this option sequences - URS will get EventReleased on switch:: when call is deleted by tserver. And SuspendForDN can be used to intercept such EventReleased. 


Offline Burak

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Calling a web service after the released
« Reply #5 on: September 28, 2020, 08:16:37 AM »
Thanks for your answer, I made it with customizing the WDE. I also opened a case to the Genesys and they suggested me to do it on the WDE.