Please, any here get me a light, I'm trying to do a simple call using the code below,
I open the session, receive the InvokeID, do MakeCall, receive again an invokeId but my Avaya OneX Com. never do this call.
class tstAvaya
{
private ServiceProvider serviceProvider;
public string OpenSession()
{
string msgReturn = "";
try
{
int InvokeId;
serviceProvider = new ServiceProvider();
int IPPortToServer = 4722;
int SessionCleanupDelay = 60;
int SessionDuration = 180;
string ProtocolVersion = ServiceProvider.DmccProtocolVersion.PROTOCOL_VERSION_4_1;
bool UseSecureSockets = false;
bool EnableAutoKeepAlive = true;
bool AllowCertificateNameMismatch = true;
InvokeId = serviceProvider.StartApplicationSession(IPAddressToServer, IPPortToServer, SessionName,
LoginName, LoginPassword, SessionCleanupDelay, SessionDuration,
ProtocolVersion,
UseSecureSockets,
serviceProvider, EnableAutoKeepAlive, AllowCertificateNameMismatch);
msgReturn = InvokeId.ToString();
}
catch (Exception exc)
{
msgReturn = " Exception: " + exc.Message;
}
return msgReturn;
}
public string MakeCall()
{
string msgReturn = "";
try
{
string DeviceId = "150031";
string DestinationDeviceId = "123";
int InvokeId;
InvokeId = serviceProvider.getThirdPartyCallController.MakeCall(DeviceId, DestinationDeviceId, null);
msgReturn = InvokeId.ToString();
}
catch (Exception exc)
{
msgReturn = " Exception: " + exc.Message;
}
return msgReturn;
}
}
|