Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: pierre on March 12, 2010, 03:28:01 PM

Title: callback (reschedule) problem
Post by: pierre on March 12, 2010, 03:28:01 PM
Hi,
First, sorry for my crappy English.
I read other topic about campaign callback.

I tried to reschedule an outboundrecord but when i did it i saw in OCM that the  record_status=UPDATED (so it will be never callbacked) and not READY.

Below, my JAVA operations in order :
 
[code]oRecord.setPhone(tel);
....
oRecord.update();
..
oRecord.reschedule(myDate,myCallBackTypeCampaign);                  // campaign callback
..
oRecord.setCallResult(myCallResult);
...
myOutboundChain.setTreatment(OutboundChain.TreatmentType.CAMPAIGN);
...
myOutboundChain.markProcessed();
..
myOutboundChain.close()[/code]

What's wrong in this chained operations ?
May i do markProcessed ?
Does reschedule operation must be the last one ?
Can i chain  reschedule and markProcessed operation ?

Thanks for your help.
Title: Re: callback (reschedule) problem
Post by: cavagnaro on March 12, 2010, 03:35:44 PM
Try adding the GSW_TREATMENT KVP
Title: Re: callback (reschedule) problem
Post by: pierre on March 18, 2010, 10:49:19 AM
That what i do when i write :

[code]myOutboundChain.setTreatment(OutboundChain.TreatmentType.CAMPAIGN);[/code]

No ?
I update my record in 2 steps:

step 1 -

[code]oRecord.setPhone(tel);
oRecord.update();
oRecord.reschedule(myDate,myCallBackTypeCampaign);                 
[/code]

----- Here, when i look in OCM i see a correct record with record status retrieved  ------

Step 2 - then i do,

[code]
oRecord.setCallResult(myCallResult);
myOutboundChain.setTreatment(OutboundChain.TreatmentType.CAMPAIGN);
myOutboundChain.markProcessed();
myOutboundChain.close()[/code]

----- Here, record status is "updated" ------
Title: Re: callback (reschedule) problem
Post by: pierre on April 02, 2010, 01:55:19 PM
hi,

Whithout GSW_TREATMENT KVP, outboundchain is proccessed correctly ! (status is READY )
Title: Re: callback (reschedule) problem
Post by: aakarach on April 21, 2010, 05:17:29 PM
set the option record_proccessed option in OCS application to be True