Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: nishantank on March 02, 2010, 04:57:17 PM

Title: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: nishantank on March 02, 2010, 04:57:17 PM
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?
Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: Fra 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
Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: nishantank 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
Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: cavagnaro 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.
Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: Fra 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
Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: René 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.

Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: cavagnaro 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.
Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: Fra on March 05, 2010, 02:31:09 AM
Yep, makes absolutely sense, Cav, it is as I was trying to explain.

Fra
Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: ecki 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.
Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: Fra 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
Title: Re: Can I Attach data to a call after it is abandoned using OnCallAbandon
Post by: ecki 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.