Simple CVP CallStudio Script: Comprehensive Exercise

Well, this is the continuation of the previous entry ‘Simple CVP CallStudio Script: Standalone Exercise‘. On previous entry the call flow was limited to CUCM, VGW and CVP but on this exercise the ICM would be involved. ICM script would call the CVP script by ECC Variables to execute it, collect data and might be send back to ICM, the CVP VXML script would be like a sub-script of the ICM script.

Okey, let’s talk about the deployment. You will need the ICM installed, that might be the progger or sprawler deployment model. You will need the Distributor (AW), Logger and Router running also you need a Peripheral Gateway (PG) to talk with CVP. I installed the whole ICM components on a single VM image on ESX for lab environment, the PG is installed also into the ICM itself. Though the Cisco Unified CVP Getting Started Guide tells you to install the PG into the CVP box but I found no difference. Here is a single screenshot of my ICM image:

Now let’s move on deployment, how to complete the exercise. I want to recall again, this is the detail view of the exercise explained on Cisco Unified CVP Getting Started Guide chapter 10 (Expand the Initial Exercises) so you must need to be familiar with the previous exercises first.

Configuring the ICM

You will need to configure the Call Type, Dialed Number/Script Selector, creating the script and associating with the Call Type.

The dial-number for the ICM script would be 6005557777 in this case so the dialed number I have configured is here:

Also the Call Type is here:

Associate the Call Type with the DN I created:

The ICM script now:

Most important part here is the ECC Variables. Here is the values of ECC Variables:

Call.user.microapp.media_server = “http://CVPIP:7000/CVP”

Call.user.microapp.app_media_lib = “..”

Call.user.microapp.ToExtVXML[] = concatenate(“application=UserInputTest;”,concatenate(“callid=”,

Call.user.microapp.UseVXMLParams = “N”

The detail of this parameters would be found at chapter 10 of Cisco Unified CVP Getting Started Guide.

Now save the script, associate with the Call Type you created:

That’s all from the ICM side! 🙂

Configuring the Voice Gateway

You will need to create some dial-peers and applications on voice gateway to accept and forward the call on return path from ICM. Go to Chapter 9, Section A starting from page number 94 to follow the procedures to configure the gateway. I wont repeat those. 🙂

Configuring the CUCM

You will need to create #1 a CVP SIP Trunk from CUCM, #2 a Route Pattern through the call toward the CVP trunk.

The CVP Trunk:








The Route Pattern:

So all done! I don’t need any modification on CVP because I have already done that on previous standalone exercise! Now make a test call and monitor the ICM script to check the status of the call. I have additionally added a Label (3001) to transfer the call to 3001 after the CVP script execution end, hence to prove the call is following the ICM script even though it’s executing the VXML CVP script.

This was the end of CVP Getting Started Guide. 🙂 I have plan to study more on CVP specially the CVP scripting part and interaction with CRM to fetching data and playback, playing more with ECC Variables etc. I’ll keep posting if I learn anything new. 🙂


About Mijanur Rahman
Mijanur started blogging to save and share his study and research notes. A deep diver in technologies and loves to participate in technical brainstorming. Proud father of two wonderful daughters loves to spend time with them. He writes about the topics that people deal with every day mainly on technology arena. To get in touch contact him at

7 Responses to Simple CVP CallStudio Script: Comprehensive Exercise

  1. Manju says:

    how do i integrate CRM with UCCE ? iam not aware of CVP programming to integrate it .
    any other to achieve the CRM/Seibel integration without CVP?

  2. If some one wishes to be updated with most up-to-date technologies
    therefore he must be pay a quick visit this web page and be
    up to date all the time.

  3. Hello, yes this piece of writing is truly fastidious and I have learned lot of things from
    it regarding blogging. thanks.

  4. Biswajit says:

    Hey Mijanur,

    Nice article, Mijanur do you have any CVP scripting documents????

  5. Rajesh says:

    hey mijanur, nice article man – i m stuck with ICM integration with CVP, the PGs never become active. can you advice me some documents which states integration between ICM and CVP step by step

    thanks / raj

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: