I received error while building the application itself.
Error 1 : “The best overloaded method match for ‘Genesyslab.Platform.Commons.Protocols.ClientChannel.Request(Genesyslab.Platform.Commons.Protocols.IMessage)’ has some invalid arguments D:\Projects\SoftPhone - Organised\Code\MemMin\SoftPhoneBar\OutboundService\OutboundAction\UpdateOutboundCall.cs 66 42 OutboundService”
Error 2 : “Argument ‘1’: cannot convert from ‘Genesyslab.Platform.Outbound.Protocols.OutboundDesktop.OutboundDesktopFactory’ to ‘Genesyslab.Platform.Commons.Protocols.IMessage’ D:\Projects\SoftPhone - Organised\Code\MemMin\SoftPhoneBar\OutboundService\OutboundAction\UpdateOutboundCall.cs 66 59 OutboundService”
I’ve given the code below
#region RescheduleOutboundCall
public bool RescheduleOutboundCall(Dictionary<string,string> data)
{
bool isCallIpdated = false;
IMessage serverResponse = null;
RecordReschedule serverRequest = null;
DateTime reScheduleTime = new DateTime();
DateTime reScheduleDate = new DateTime();
string finalDateTime = string.Empty;
OutboundServerProtocol protocol = null;
OutboundDesktopFactory factory=null;
try
{
if (data != null)
{
serverRequest = new RecordReschedule();
serverRequest.ApplicationId = Convert.ToInt32(data["id"]);
serverRequest.CallbackType = CallbackType.Campaign;
serverRequest.CampaignName = data["cname"];
reScheduleTime = Convert.ToDateTime(data["time"]);
reScheduleDate = Convert.ToDateTime(data["date"]);
finalDateTime = reScheduleDate.Date.ToShortDateString() + " " +
reScheduleTime.ToString(Settings.OutboundProperties["date"], CultureInfo.InstalledUICulture);
logger.Info("Re-Schedule time " + finalDateTime + " for the campaign " + data["cname"]);
serverRequest.DateTime = finalDateTime;
serverRequest.RecordHandle = Convert.ToInt32(data["record"]);
protocol = (OutboundServerProtocol)Settings.protocol["protocol"];
if (protocol.State == ChannelState.Opened)
{
serverResponse = protocol.Request(factory);
if (serverResponse != null)
{
switch (serverResponse.Id)
{
case EventError.MessageId:
logger.Error("Error response from Outbound server for re-scheduling the call " +
serverResponse.ToString());
break;
default:
logger.Info("Default response from Outbound server for re-scheduling the call " +
serverResponse.ToString());
break;
}
}
}
else
{
logger.Info("Outbound protocol status is " +protocol.State.ToString());
}
}
else
{
logger.Info("Input data for re-scheduling the call is empty ");
}
}
catch (Exception generalException)
{
logger.Error("Error occured while updating the outbound call with rescheduling time " +
generalException.ToString());
}
finally
{
serverResponse = null;
serverRequest = null;
protocol = null;
data = null;
factory=null;
}
return isCallIpdated;
}
#endregion
Requests related to outbound desktop must be sent via TServer protocol and not Outbound. You can find more details and sample application on official Genesys forum - https://forums.genesyslab.com/showthread.php?t=690.
I am a newbie to Genesys PSDK. I suspect recently Genesys changed their forum to SalesForce and lots of the sample codes are missing.
The URL which you shared https://forums.genesyslab.com/showthread.php?t=690 is dead.
I trying to build a custom application which interacts with Genesys’ Auto Dialer. I manage to find some sample code which interacts with TServer (soft dialing features) but almost nothing on Outbound Desktop. I am writing this app using VB.Net.
I am trying to do the following:
Retrieving custom data from the EventRinging class.
Trigger personal call backs using RecordReschedule.
Inject new personal call backs using AddRecord class.
Update a call status using UpdateCallCompletionStats.
Remove a calling list from Auto Dialer using DoNoCall class.
Can you please point to me where can I find such sample codes?
Thank you in advance and Regards.
You can find sample codes on docs.genesyslab.com or if you are Genesys partnerm, you can find topics from moved forum “forum.genesyslab.com” to internally saleforce or contact support with your questions. There is no other officialy place where you can find some examples such as “hello world!”, except personally pages of some Genesys experts.
From my point of view is much better and quick to create request to Genesys support as question , not problem/incident. If you have some specific problems or question about it, try to ask here.
Please refer to Communication Protocol and Communication DN API from Outbound Reference Manual Guide for desktop communication requests & events to OCS via T-Server.