Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Aspect WinSet OCX 2

Status
Not open for further replies.

gkarlos

Programmer
Jan 20, 2011
9
BR
Hi,
Im trying to find out the Aspect WinSet OCX to integrate SalesForce CTIAdapter but somehow sales representative doesnt know about an OCX that can be used for that.
I already read of such solution and my deadline is very short. Even on installation checking the option for OCX the only thing I could find was jars and a #c sample but no OCX at all. In time, I dont want to use .net, java but simple C++ and if I have the .ocx with the functions to implement will save my skull.
Please, if anyone has any info that helps me to find/grab the ocx, let me know
 
gkarlos, Hi,

There used to be and, most likely still is, an OCX for WinSet. However, it is not easy to lay your hands on and requires license codes for the supporting DLL. May depend on your version of WinSet as well.

I would suggest that you abandon the WinSet OCX route for integration and use Aspect Contact Server CTI.

Good luck, Tom
 
Thanks tompinuk

My needs are quite simple for whom who have skills on that.
I need to integrate Salesforce with Aspect but the options I have seem (as I said) are all in C# or Java
 
When you say "integrate to Saleforce" just what do you need to do to "integrate". Are you looking for screen-pop, softphone, CTI Call control...?

Aspect Contact Server CTI will offer you C#, VB.NET, Java, C and there is also an OCX available. A third party product will enable functionality through WebServices.
 
Integration in my meaning is just allow the events from like (SalesForce cti demo adapter) with Aspect.
I've found this and it appeared to be easy. The problem is the guys who should did this simple disappeared from company and now the bomb will blast on my chest.

You said that Aspect Contact Server CTI offer C as well as OCX but using the Aspect DVD installation I couldnt find such... only the contents under ..\Aspect Software\Unified IP Client\SDK\OCXAgentAPI\c#sample

Can you tell me where in the installation disks I can find the C library and/or the OCX that works with C/CPP ??

Thanks a lot
 
To complement what I wrote above...:

With 'integration' I mean to send/receive events to and from Aspect (calls, etc) to the Salesforce. The salesforce part is done by using their ctiadapter. As per what I read, the OCX should have methods (like connect,signon,etc) as well as events that would be reported when a call arrives.

I tried to install the called 'ocx' from the package but the only OCX I saw was AOD Feed API and under ..\OCXAgentAPI only C# and jar files and none are useful in my case.

Any help will be very appreciated
 
OK, from the terms you are using it appears that we are talking about two different things here.

In your opening post you mention WinSet. This is an agent softphone product that was created for the Aspect CallCenter ACD only.

In the 2nd last post you mention Unified IP thus: ..\Aspect Software\Unified IP Client\SDK\OCXAgentAPI\c#sample.

These are two totally different products. Please tell me which of the Aspect products (there are many!) you are trying to integrate to?

If you are using CallCenter ACD then I can try to assist. However, for Unified IP you need to seek another forum or you can try the Aspect User Group at .

Regards, Tom
 
I guess you are right... the Aspect they are using is the UIP_6.60 which I believe is Aspect Unified IP version 6.60
 
I've found the CCProAgent.ocx (under Unified IP Shared folder) which really appears to be the one I need.
Do you know where I can find an example of use? I tried to use it as OCX in VS2008 but it looks like trying to connect to server before I call any method. The documentation I found do not specify anything (only that you must use SetPortal prior to call Login but when OCX is loaded it appears to call CCPro_ag.exe and then a 'Server Busy' message appears)

Sorry if my questions are confused. I tried to register at asuga.com but did not received any feedback

Thanks again for any additional help you might give.
 
[EDIT]

Now, after dealing with DVD's I finally got what was wrong... people didnt follow the normal installation procedure and doing so I was with incomplete package.
 
I'm glad that you have now come right and are able to proceed. I hope it all goes well.

Regards, Tom
 
gkarlos do you have any sample code for making the initial connection and agent login that you would be willing to share?

It would be much appreciated.

Thanks!
 
Hi bholland,

After few weeks suffering I was able to full interface SalesForce with Aspect, including other features like retrieving information like email from SF and save them onto Aspect custom edit fields... but that took a lot of work as I really couldnt find a good (or even superficial but clear enough) documentation.

My code might not be suitable for others as I had to implement both SalesForce (uses ATL library) and Aspect (using the OCX) in a single one... anyway, the first step is to put the ocx into the dialog... then grab the events. (What would really be great is if we could send commands directly to Aspect through sockets without using an OCX or whatever... that would make be suitable for many kind of implementations.)

Assuming that you already done that (created a dialog experimental app and added the OCX control on it), the most important part is to implement the OnStateChange to grab the events that signals when something happens (Login, Logout, Incoming Calling,Wrapup, etc) You might also need to implement OnAgentLoggedIn event so you can load the reason codes for NotReady and LoggedOut (if you ever use them). As documentation were pretty superficial I implemented all events and put a call to a log on each one so I could follow what happens on every attempt..

If you are going to use ATL you might need to import the OCX like I did:

#import <CCProagent.ocx> named_guids
using namespace CCPROAgentCtl;

But if you are going to work directly with a dialog you can handle the events directly and with the help of wizard which reduces a lot of typing...

The following would be an example of how to perform a login issue:

CString m_UserID(_T("gkarlos")),
m_Password(_T("123@lab")),
m_Extension(_T("9187"));


//Login method uses bstr instead of string.

BSTR m_bstrUSER = m_UserID.AllocSysString(),
m_bstrPASS = m_Password.AllocSysString(),
m_bstrEXT = m_Extension.AllocSysString();


nReturn = m_AspectOCXCtrl.Login(&m_bstrUSER,&m_bstrPASS,&m_bstrEXT);

::SysFreeString(m_bstrUSER);
::SysFreeString(m_bstrPASS);
::SysFreeString(m_bstrEXT);


//nReturn fails if different from CCPROAgentCtl::ccpSuccess;

Remember that you must set Portal prior issuing a login command.

Not sure if this enlights you a bit or made you confused... let me know. Cant put the code here as I had to sign a NDA with client, so only small pieces of code wont bring me problems.

 
Thanks, that is very helpful but I think I still have some work to do to get to the point you are at.

So far I have added the controls to my VS toolbox but as soon as I drag the controls onto my form I get this error:


Then if I look at my references I see this:

I will not be doing any interfacing Salesforce as you were so I was hoping this would be fairly simple.

Thanks again, I appreciate any input you are able to provide!
 
Well have you installed OCX by using the Aspect installation discs? You should do that, then install the appropriated SP2 and then the CodeMod 01... only after that your aspect ocx will work as it should... if you grab the .ocx files from another machine and register them (regsvr32 /s xxxx.ocx) it wont work.
Also as you wont deal with ATL/Sales and if you are using C# you might should instead use SamplePortalClient (you can find it on your installation directory like C:\Program Files (x86)\Aspect Software\Unified IP Client\SDK\OCXAgentAPI\c#sample)... it is pretty complete and looks easy to expand for your needs
 

Thanks gkarlos, apparently when the applications were installed on my pc the sdk documentation was not checked off. I have installed the sdk and documentation now but I am still getting errors. I researched the errors and my initial thought is that it isn't working because I am using VS 2010.

You mentioned in your post that you did this development for a client, would you be interested in assisting us in getting started? We are on a limited budget but could go over your requirements if you are available.

If so you can email me at: billy.holland at dynamic-direct.com

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top