cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
158
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: kamal pragallapati on 13-10-2010 12:04:15 AM
I'm new to CISCO tool development. I have a requirement to handle specific event. When the "Answer" button is clicked, I need to read the value in the variable 2, means any variable value I should be able to read. How do I write a event handler or do I get CTIOS code and I need to modify the code to handle the event, I don't know really. I need some help in this regards.

Subject: RE: How to handle Answer button click
Replied by: Shannon McCoy on 13-10-2010 12:15:28 AM
I'm new to CISCO tool development. I have a requirement to handle specific event. When the "Answer" button is clicked, I need to read the value in the variable 2, means any variable value I should be able to read. How do I write a event handler or do I get CTIOS code and I need to modify the code to handle the event, I don't know really. I need some help in this regards.

 
What language are you using?
 
Are you trying to act when the button is pressed or when the call is answered after the button press?

Subject: RE: How to handle Answer button click
Replied by: Shannon McCoy on 13-10-2010 12:54:41 AM

I'm new to CISCO tool development. I have a requirement to handle specific event. When the "Answer" button is clicked, I need to read the value in the variable 2, means any variable value I should be able to read. How do I write a event handler or do I get CTIOS code and I need to modify the code to handle the event, I don't know really. I need some help in this regards.



 
Handle the OnCallBegin event and in the ICallEvents interface. You will get an Arguments object with the event. On the Argument object use the GetValueString() method passing the "CallVariable2" as the key. Set this value aside for when the answer button is pressed. Then either handle the button press in your platform of choice or handle the OnAnswerCallConf event. 
 
Another method would be to call GetCurrentCall() on your Session object  to get a Call object and then call GetCallData() on that object to get your Arguments object. Then call GetValueString( "CallVariable2", foo )  on that.
 
Hope this helps. You can use the objects referenced to look up the details in the CtiOs Programming Guide for your version of CtiOs.

Subject: Re: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: kamal pragallapati on 13-10-2010 06:25:19 AM
I'm a .NET developer with VC++ background. Can I use one of these languages to
achieve this or do I need to write programs in Java only.


My next question is do I get the source code for CTIOS or I need to use the
libraries available for CTIOS, refer those libraries and use the APIs you
mentioned. Right now in our work environment we are simply using the CTIOS
client and ICM interacts with the CTIOS to set the values. How do my program
interacts with the CTIOS to read the values. Sorry for these questions as I'm
completely new to this environment. If my program has to run at the CTIOS which
is client, what ever the program I write it needs to be installed in more than
500 client machines which is a big hassle, is there any way to avoid. Thanks in
advance.




________________________________
From: Cisco Developer Community Forums <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Tue, October 12, 2010 5:54:41 PM
Subject: New Message from Shannon McCoy in Computer Telephony Integration Object
Server (CTIOS) Toolkit - CTIOS Toolkit Questions: RE: How to handle Answer
button click

Shannon McCoy has created a new message in the forum "CTIOS Toolkit Questions":
--------------------------------------------------------------

I'm new to CISCO tool development. I have a requirement to handle specific
event. When the "Answer" button is clicked, I need to read the value in the
variable 2, means any variable value I should be able to read. How do I write a
event handler or do I get CTIOS code and I need to modify the code to handle the
event, I don't know really. I need some help in this regards.
 
Handle the OnCallBegin event and in the ICallEvents interface. You will get an
Arguments object with the event. On the Argument object use the GetValueString()
method passing the "CallVariable2" as the key. Set this value aside for when the
answer button is pressed. Then either handle the button press in your platform
of choice or the hand the OnAnswerCallConf event. 
 
Another method would be to call GetCurrentCall() on your Session object  to get
a Call object and then call GetCallData() on that object to get your Arguments
object. Then call GetStringValue( "CallVariable2", foo )  on that.
 
Hope this helps. You can use the objects referenced to look up the details in
the CtiOs Programming Guide for your version of CtiOs.
--
To respond to this post, please click the following link:
<http://developer.cisco.com/web/ctios/forums/-/message_boards/message/2635058>
or simply reply to this email.

Subject: RE: Re: New Message from Shannon McCoy in Computer Telephony Integration Ob
Replied by: Shannon McCoy on 13-10-2010 01:09:41 PM


I'm a .NET developer with VC++ background. Can I use one of these languages to
achieve this or do I need to write programs in Java only.


My next question is do I get the source code for CTIOS or I need to use the
libraries available for CTIOS, refer those libraries and use the APIs you
mentioned. Right now in our work environment we are simply using the CTIOS
client and ICM interacts with the CTIOS to set the values. How do my program
interacts with the CTIOS to read the values. Sorry for these questions as I'm
completely new to this environment. If my program has to run at the CTIOS which
is client, what ever the program I write it needs to be installed in more than
500 client machines which is a big hassle, is there any way to avoid. Thanks in
advance.



 
The libraries and example code you need is in the CtiOs Tookit. When you install the stock Cisco CtiOs Client there is checkbox option to also install the CtiOs Toolkit. This has all the libraries you need for Win32/COM/ActiveX, .NET and Java. It will be located in the c:\program files\Cisco Systems\CtiOs Client\CtiOs TookKit folder. If you use .NET you will find the dotNet folder in the toolkit. In the samples folder you will find the ComboDesktop Example. Just open it with Visual Studio and compile it. You will have to configure the config file of the compiled app to point to your CtiOs A&B server addresses and ports. After that you can run it in the debugger to see how things work. You can use my advise from the previous post to find out how to access the data you seek. The sample is very complete but has several bugs so you shouldn't use it in production until you clean it up to your satisfaction. You may need for example to set the CheckForIllegalCrossThreadCalls property to false on the forms. As for installing on muliple clients you can use .NET ClickOnce deployment and simply email the url to the app to your clients. Once they run it form the URL it will be installed on their machine. If you publish a new build the client will be automatically updated. Its simple and fast. If you don't use silent monitoring you don't even need to install the stock CtiOs client on the desktop. Just make sure all the dependent CtiOs libraries are included in the deployment.
 
As for the job ahead you will need to read the CtiOs Programming Guide, System Managers Guide and Supervisor Guides thoroughly. This API is not simple to use and has lots of quircks so prepare yourself for a long journey. Good luck to you.

Subject: Re: New Message from Shannon McCoy in Computer Telephony Integration Object
Replied by: kamal pragallapati on 01-02-2012 07:01:41 PM
Hi,

I'm unable to post the question in forum and it is saying I don't have permissions to post the question. So I'm mailing to this group and your help in this regard is highly appreciated.

My question is 
"The question may not be appropriate in this forum as this forum is for CTIOS Developers.
I'm working on CRS Editor and the requirement is to recognize voice input where the input (input is a unique input per call) is a alpha numeric. 
I need to recognize in the CRS Editor each letter and number that is spoken by the Caller and send this to Java webservices.
I always used "Create Menu Grammar" and recognize the input through the keypad ("dtmf-1" and etc)."

Thanks,
Kamal

________________________________
From: Cisco Developer Community Forums <[email protected]>
To: "[email protected]" <[email protected]>
Sent: Tuesday, October 12, 2010 5:54 PM
Subject: New Message from Shannon McCoy in Computer Telephony Integration Object Server (CTIOS) Toolkit - CTIOS Toolkit Questions: RE: How to handle Answer button click


Shannon McCoy has created a new message in the forum "CTIOS Toolkit Questions":
--------------------------------------------------------------

I'm new to CISCO tool development. I have a requirement to handle specific event. When the "Answer" button is clicked, I need to read the value in the variable 2, means any variable value I should be able to read. How do I write a event handler or do I get CTIOS code and I need to modify the code to handle the event, I don't know really. I need some help in this regards.
 
Handle the OnCallBegin event and in the ICallEvents interface. You will get an Arguments object with the event. On the Argument object use the GetValueString() method passing the "CallVariable2" as the key. Set this value aside for when the answer button is pressed. Then either handle the button press in your platform of choice or the hand the OnAnswerCallConf event. 
 
Another method would be to call GetCurrentCall() on your Session object  to get a Call object and then call GetCallData() on that object to get your Arguments object. Then call GetStringValue( "CallVariable2", foo )  on that.
 
Hope this helps. You can use the objects referenced to look up the details in the CtiOs Programming Guide for your version of CtiOs.
--
To respond to this post, please click the following link:
<http://developer.cisco.com/web/ctios/forums/-/message_boards/message/2635058>
or simply reply to this email.

Subject: RE: How to handle Answer button click
Replied by: David Lender on 02-02-2012 02:34:27 PM
Are you able to login to the CDN site using your CCO credentials?

CRS Editor scripting is outside the scope of the CTIOS forum, which is for UCCE only, not UCCX.   CDN does not support UCCX scripting.

You may wish to post your question in the Contact Center forum on Cisco.com

https://supportforums.cisco.com/community/netpro/collaboration-voice-video/contact-center
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links