Hi, im trying to update this fields (GSW_FROM and GSW_UNTIL) of a record in OCS, my sequence is:
RecordReschedule
UpdateCallCompletionStats
RecordProcessed
And after sending each one i receive the correspondings:
RecordRescheduleAcknowledge
UpdateCallCompletionStatsAcknowledge
RecordProcessedAcknowledge
But my UpdateCallCompletionStats doesnt update this fields, they keep as original, this is the code:
[code]
public void ContactoAjustarRangoHorario(CTKVUtil contactoUserData, DateTime fechaHora)
{
CTKVList userData = new CTKVListClass();
userData.AddTail(CTKVUtil.BuildPair("GSW_AGENT_REQ_TYPE", "UpdateCallCompletionStats"));
userData.AddTail(contactoUserData.GetPair("GSW_APPLICATION_ID"));
userData.AddTail(contactoUserData.GetPair("GSW_CAMPAIGN_NAME"));
userData.AddTail(contactoUserData.GetPair("GSW_RECORD_HANDLE"));
userData.AddTail(CTKVUtil.BuildPair("GSW_FROM", Segundos(fechaHora)));
userData.AddTail(CTKVUtil.BuildPair("GSW_UNTIL",
Segundos(fechaHora.AddMinutes(Configuracion.DeltaUntil))));
TEventInfo eventInfo = new TEventInfoClass();
eventInfo.UserData = userData;
eventInfo.Extensions = null;
TStatus estado = axTExtension.TSendUserEvent(eventInfo);
eventInfo.UserData = null;
eventInfo.Extensions = null;
if (estado != TStatus.T_SUCCESS)
throw new UserEventException(new CTKVUtil(eventInfo.UserData));
TramperaEventoUsuario trampera = new TramperaEventoUsuario("UpdateCallCompletionStatsAcknowledge");
trampera.Atrapar(tramperas);
if (!trampera.Atrapado)
throw new UserEventException(new CTKVUtil(eventInfo.UserData), trampera);
return;
}
[/code]
In other cases i use AddRecord User Event and here those field works fine, exactly how i want:
[code]
//resume
userData.AddTail(CTKVUtil.BuildPair("GSW_DATE_TIME", fechaHora));
userData.AddTail(CTKVUtil.BuildPair("GSW_FROM", Segundos(fechaHora)));
//GSW_FROM Omito, toma valor 28800 (28800 es 8 AM)
userData.AddTail(CTKVUtil.BuildPair("GSW_UNTIL",
Segundos(fechaHora.AddMinutes(Configuracion.DeltaUntil))));
//GSW_UNTIL Omito, toma el valor 64800 (64800 es 6 PM)
[/code]
Any idea why UpdateCallCompletionStats is not updating the GSW_FROM and the GSW_UNTIL ?
Thanks!