" /> Can I Attach data to a call after it is abandoned using OnCallAbandon - Genesys CTI User Forum

Author Topic: Can I Attach data to a call after it is abandoned using OnCallAbandon  (Read 6420 times)

Offline nishantank

  • Newbie
  • *
  • Posts: 30
  • Karma: 1
Advertisement
Hi

I have a requirement to report on Abandoned calls. Basically, I have to attach a KVP if a call is abandoned.
To do this, I have used the OnCallAbandoned function in the main strategy and passing the name of a sub-routine in it.
And in the Sub-routine, I attach a KVP to the call. But it is not working. I am unable to see the KVP being attached in the URS log.

Am aware I may be doing something fundamentally wrong here (in that am attaching KVP to a call that is already gone). Is that the case?
If yes, Is there a work around?

Offline Fra

  • Hero Member
  • *****
  • Posts: 856
  • Karma: -3
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #1 on: March 02, 2010, 05:32:17 PM »
and what do the logs say?

Anyway I doubt it will work, when the call is terminated the call context in T-Server is closed,  you shouldn't be able to modify anything related to a destroyed call.

Fra

Offline nishantank

  • Newbie
  • *
  • Posts: 30
  • Karma: 1
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #2 on: March 02, 2010, 06:03:20 PM »
Exactly .. and thats what the logs show ... nothing.
I cannot even use the print function to print anything pertaining to the call.

Anyway,  thanks for responding

Nishant

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #3 on: March 02, 2010, 07:39:30 PM »
There is a function called OnCallAbandon, what I did was to create a SP which was invoqued by a substrategy loaded by this function and then stored some info on a table.

Offline Fra

  • Hero Member
  • *****
  • Posts: 856
  • Karma: -3
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #4 on: March 03, 2010, 12:29:27 AM »
[quote author=nishantank link=topic=5200.msg22990#msg22990 date=1267553000]
Exactly .. and thats what the logs show ... nothing.
I cannot even use the print function to print anything pertaining to the call.
[/quote]
well then you've got some other issues there, logs *always* speak up - rule #1 :P . set the appropriate URS log level and then track the call flow from the EventRouteRequest on.

[quote author=cavagnaro link=topic=5200.msg22991#msg22991 date=1267558770]
There is a function called OnCallAbandon, what I did was to create a SP which was invoqued by a substrategy loaded by this function and then stored some info on a table.
[/quote]
Interesting; probably the SP is called just on time and anyway executed separetely, where the RequestAttachData would be executed within the call context, right after has already been abandoned.

Fra

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #5 on: March 03, 2010, 08:48:14 AM »
Hi Nishantank,

As clearly stated in the documentation the call context is gone when a "OnCallAbandoned" strategy is executed. So it isn't possible to do any operation over the call like attaching user data, applying treatment etc.

R.


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #6 on: March 04, 2010, 10:50:30 PM »
[quote author=Fra link=topic=5200.msg22993#msg22993 date=1267576167]

[quote author=cavagnaro link=topic=5200.msg22991#msg22991 date=1267558770]
There is a function called OnCallAbandon, what I did was to create a SP which was invoqued by a substrategy loaded by this function and then stored some info on a table.
[/quote]
Interesting; probably the SP is called just on time and anyway executed separetely, where the RequestAttachData would be executed within the call context, right after has already been abandoned.

Fra
[/quote]

Well my idea was as I can't attach the data to the call, at least save the connid, ANI and do the "Attach" outside Genesys so later you can check that table and see what you needed.

Offline Fra

  • Hero Member
  • *****
  • Posts: 856
  • Karma: -3
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #7 on: March 05, 2010, 02:31:09 AM »
Yep, makes absolutely sense, Cav, it is as I was trying to explain.

Fra

Offline ecki

  • Sr. Member
  • ****
  • Posts: 329
  • Karma: 8
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #8 on: March 05, 2010, 07:33:51 AM »
[quote author=René link=topic=5200.msg23001#msg23001 date=1267606094]
As clearly stated in the documentation the call context is gone when a "OnCallAbandoned" strategy is executed. So it isn't possible to do any operation over the call like attaching user data, applying treatment etc.

R.
[/quote]

Have someone tried to send userevent with the kvps and connid from this "OnCallAbandoned" strategy? Icon/Infomart can capture this information although call is long gone (of course withing defined timeout) and associate submitted KVPs to original call records.

e.

Offline Fra

  • Hero Member
  • *****
  • Posts: 856
  • Karma: -3
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #9 on: March 05, 2010, 10:34:39 AM »
[quote author=ecki link=topic=5200.msg23261#msg23261 date=1267774431]
[quote author=René link=topic=5200.msg23001#msg23001 date=1267606094]
As clearly stated in the documentation the call context is gone when a "OnCallAbandoned" strategy is executed. So it isn't possible to do any operation over the call like attaching user data, applying treatment etc.

R.
[/quote]

Have someone tried to send userevent with the kvps and connid from this "OnCallAbandoned" strategy? Icon/Infomart can capture this information although call is long gone (of course withing defined timeout) and associate submitted KVPs to original call records.

e.
[/quote]

I tried in the old days with Call Concentrator and didn't work..it would worth re-trying now.

Fra

Offline ecki

  • Sr. Member
  • ****
  • Posts: 329
  • Karma: 8
Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
« Reply #10 on: March 06, 2010, 08:25:42 AM »
Good idea :). I will try as well as soon as I find a bit space in my time frame.

e.