|
Hi Jeremy
Thanks for your reply.
In fact what I have done is the following:
First the new cti control is an ActiveX control (Hermes.net) and the CCA is a WPF tools, so to integrate the ActiveX toolbar I followed the steps described in the following link: (Hosting an ActiveX Control in WPF)
http://msdn.microsoft.com/en-us/library/ms742735.aspx
I replaced the cticontrol with our specific toolbar. So the is no more the list of cti event of the old cticontrol. The new cti control has his own cti event like callAlerting ,
CallSuccess, CallTransfert…
And I tried to implement and dowing my own logic in every event specificly in the callAlerting to open the customerform of the caller in a dynamic application. For this I create a HAT project with a workflow to
do this. to test the functionality Im using a fixed customerId to open his form the following is the code of CallAlerting event:
private
void AX_CallSuccess(object sender, AxAgentLink._IToolbarEvents_CallSuccessEvent e)
{
Context context = new Uii.Csr.Context();
context["CustomerID"] =
"85405143-70E8-DD11-A630-000C29EED626";
context["CustomerType"] =
"account";
AgentDesktopSession IadSession = (AgentDesktopSession)LocalSessionManager.ActiveSession;
IadSession.AppHost.SetContext(context);
bool success = true;
if (!uiiDesktop.AppExistsInUI("Crm Customer View"))
success = uiiDesktop.CreateDynamicApplication("Crm Customer View");
if (success)
{
uiiDesktop.SetFocusOnApplication("Crm Customer View");
RequestActionEventArgs args =
new RequestActionEventArgs("Crm Customer View",
"OpenCustomerForm",
"");
FireRequestAction(args);
}
}
So if you say that I need to Open a session with the customer and the CallId as a parameter so I need to create a CustomerEntity with my specific Id and the CallId will be new Guid. Ok this is will be easy, but
as you say to do the with the best practice I need to create a cticonnector and modifying
CallStateManager. This is will be hard to me
J.
Jeremy if you can really help me on this I will appreciate a lot I can olso send you the dev server parameter if you need to see the control and show me the way and were I must add the code or I can send you our
ActiveX control and all my CCA project .
Thanks Jeremy.
|