Hello.
I can't understand how to use eGW_CMD_DIAL command.
I am trying to make call from my application, when I call action Dial from contact.
I have added my aplication into combobox "Tools"->"Options"->"Environments"->"Default action" -> "default telephony provider" but i can't catch dial from contact.
How I can catch this command?
.
Registartion:
sServerKey = "SOFTWARE\\Novell\\GroupWise\\5.0\\C3PO\\DataTypes \\GW.CLIENT\\testCSharp.C3POServer2";
serverKey = rk.CreateSubKey(sServerKey);
if (serverKey != null)
{
using (RegistryKey
testObject = serverKey.CreateSubKey("Objects"),
testEvent = serverKey.CreateSubKey("Events"))
{
testObject.SetValue("CommandFactory", "");
testEvent.SetValue(eGW_CMDID_DIAL, "");
}
}
CommandFactory:
public bool WantCommand(string sGWContext, string sGWPersistentID)
{
bool bWantCommand = false;
if (sGWContext == "GW.CLIENT")
{
if (sGWPersistentID == testCSharp.eGW_CMDID_DIAL)
{
bWantCommand = true;
}
}
return bWantCommand;
}
public object BuildCommand(string sGWContext, string sGWPersistentID, ref object objGWBaseCommand, ref object objGWParameter)
{
GWCommand GWCmd = null;
if (sGWContext == "GW.CLIENT")
{
if (sGWPersistentID == testCSharp.eGW_CMDID_DIAL)
{
GWCmd = new GWCommand(testCSharp.dialCommand);
GWCmd.BaseCmd = (IGWCommand)objGWBaseCommand;
}
}
return (IGWCommand)GWCmd;
}
I can't understand how to use eGW_CMD_DIAL command.
I am trying to make call from my application, when I call action Dial from contact.
I have added my aplication into combobox "Tools"->"Options"->"Environments"->"Default action" -> "default telephony provider" but i can't catch dial from contact.
How I can catch this command?
.
Registartion:
sServerKey = "SOFTWARE\\Novell\\GroupWise\\5.0\\C3PO\\DataTypes \\GW.CLIENT\\testCSharp.C3POServer2";
serverKey = rk.CreateSubKey(sServerKey);
if (serverKey != null)
{
using (RegistryKey
testObject = serverKey.CreateSubKey("Objects"),
testEvent = serverKey.CreateSubKey("Events"))
{
testObject.SetValue("CommandFactory", "");
testEvent.SetValue(eGW_CMDID_DIAL, "");
}
}
CommandFactory:
public bool WantCommand(string sGWContext, string sGWPersistentID)
{
bool bWantCommand = false;
if (sGWContext == "GW.CLIENT")
{
if (sGWPersistentID == testCSharp.eGW_CMDID_DIAL)
{
bWantCommand = true;
}
}
return bWantCommand;
}
public object BuildCommand(string sGWContext, string sGWPersistentID, ref object objGWBaseCommand, ref object objGWParameter)
{
GWCommand GWCmd = null;
if (sGWContext == "GW.CLIENT")
{
if (sGWPersistentID == testCSharp.eGW_CMDID_DIAL)
{
GWCmd = new GWCommand(testCSharp.dialCommand);
GWCmd.BaseCmd = (IGWCommand)objGWBaseCommand;
}
}
return (IGWCommand)GWCmd;
}