cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1485
Views
0
Helpful
1
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Gerard O'Rourke on 28-10-2013 11:27:46 AM
Hi,

I need to find out which CVP CallServer is taking the call for a call which originates from CUCM CTI Route Point.
This is a Call where the Routing Client is CallManager and not CVP.

In the ICM script, there is a send to VRU node, which routes the Call to CVP CallServer.

Does anyone know a way to find out which CVP CallServer has taken the Call (due to the Send to VRU node)
Usually you can find this out (for CVP originated calls) by using user.cvp_server_info or finding out the routing client.

However for CUCM Routing Clients Calls, the user.cvp_server_info is empty, and finding the routing client is of no use (as its the CallManager).
Anyone have an idea on how to find out which CVP CallServer has this call?
And finding out its Hostname or IP address?Regards,

Gerry

Subject: RE: user.cvp_server_info for CUCM originated calls
Replied by: Gerard O'Rourke on 29-10-2013 04:47:49 AM
Any ideas on how to find the name, hostname or IP address of the CVP CallServer which has the call, if the routing client is CUCM and
the call has been sent to CVP usign Send to VRU?

Gerry

Subject: RE: user.cvp_server_info for CUCM originated calls
Replied by: Paul Tindall on 29-10-2013 04:56:53 AM
The Contact and App-Info SIP headers on the VRU leg contain the Call Server IP address.

Subject: RE: user.cvp_server_info for CUCM originated calls
Replied by: Paul Tindall on 29-10-2013 04:58:35 AM
Of course, that assumes you're trying to access these from an IVR application.

Subject: RE: user.cvp_server_info for CUCM originated calls
Replied by: Gerard O'Rourke on 29-10-2013 06:26:33 AM
Paul,

The contact SIP headers contain the IP address of the CallManager for the call when it arrives into CVP.
As you say on the VRU/VXML Gateway they would contain the CallServer address.
I would like to get this info, from wihin the ICM script, BEFORE any VRU treatment.

The "INVITE" header and the "TO" header do contain the IP address of the CallServer on the SIP invite to CallServer.

If I wanted to retrieve this in ICM, would I need to add these headers to the SIP Header Passing to ICM config in the CVP CallServer?
I could then parse the header info in ICM to get the host ip address?

Gerry

SIP INVITE BELOW:
====================
INVITE sip:20288811110002549@10.123.123.6:5060 SIP/2.0
Via: SIP/2.0/TCP 10.123.123.12:5060;branch=z9hG4bK7899b9dbf91a
From: "NID Agent" <sip:71063@10.123.123.12>;tag=801938~ea93ca2c-0789-4625-bce0-2b4451ce00bb-41424808
To: <sip:20288811110002549@10.28.60.6>
Date: Tue, 29 Oct 2013 11:03:53 GMT
Call-ID: cadef800-26f19619-1c99c-c3c1c0a@10.123.123.12
Supported: timer,resource-priority,replaces
Min-SE:  1800
User-Agent: Cisco-CUCM9.1
Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY
CSeq: 101 INVITE
Expires: 180
Allow-Events: presence
Supported: X-cisco-srtp-fallback,X-cisco-original-called
Cisco-Guid: 3403610112-0000065536-0000046777-0205265930
Session-Expires:  1800
P-Asserted-Identity: "NID Agent" <sip:71063@10.123.123.102>
Remote-Party-ID: "NID Agent" <sip:71063@10.123.123.102>;party=calling;screen=yes;privacy=off
Contact: <sip:71063@10.123.123.102:5060;transport=tcp>
Max-Forwards: 69
Content-Type: application/sdp
Content-Length: 212v=0
o=CiscoSystemsCCM-SIP 801938 1 IN IP4 10.28.60.12
s=SIP Call
c=IN IP4 10.123.123.50
t=0 0
m=audio 18158 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

Subject: RE: user.cvp_server_info for CUCM originated calls
Replied by: Paul Tindall on 29-10-2013 07:26:00 AM
Gerry,

Assuming you're using a Type 10, although ICM is involved in handling (the inccoming) stage 1 and delivering (the outgoing) stage 2 of the call flow to the IVR, the script doesn't actually get control at that point so there's nothing you can do in the script before the call has reached the VRU.   Once it's there, the script is active again based on a Request Instructions rather than the SIP call so I don't think you'll be able to access the SIP headers from the UCM to CVP call leg.

At that point you can do one of 2 things.  Either do a transfer with requery to a dummy label that will deliberately fail in order to get control back into ICM without the VRU leg in place, or use a bit of external VoiceXML to extract the SIP header(s) from the VRU leg.

Paul

Subject: RE: user.cvp_server_info for CUCM originated calls
Replied by: Paul Tindall on 29-10-2013 07:28:12 AM
I ahould add that if you use the dummy transfer method then the normal ICM variables for CVP / routing client should probably be populated.

Subject: RE: user.cvp_server_info for CUCM originated calls
Replied by: Gerard O'Rourke on 30-10-2013 04:11:12 AM
Paul & anyone who is interested!

I have got it working and its documented how below.
Next step, it would be nice if Cisco fixed the user.cvp_server_info if and when CUCM is the routing client calls, as it should not leave value blank (I believe its a bug). It SHOULD return the IP address of the CallServer (if retrieved after a Send to VRU node), but it does not. The below is a workaround for the current limited fuser.cvp_server_info fuctionality.

Step 1 - Configure the CVP CallServer SIP Advanced Config (Ops Console) to Pass in the "To" SIP Header as in below:
Step 2 - Parse the content of the IP Address out of this by using the following ICM script fuctions:
mid(Call.SIPHeader,((find("@",Call.SIPHeader))+1),((find(">", Call.SIPHeader)-find("@",Call.SIPHeader)))-1)

This works for both for when CVP or CUCM is the routing client. It will return the CVP CallServer address:

Documented Here with images, ( I tried to upload pictures to forum, but would work for me, so posted details here).
http://orourke.tv/web/doku.php?id=cisco:uc:cvp:cvp-ip-addresshttp://orourke.tv/web/lib/exe/detail.php?id=cisco%3Auc%3Acvp%3Acvp-ip-address&media=cisco:uc:cvp:1-sip-headertoconfig.jpg

Gerry

Subject: RE: user.cvp_server_info for CUCM originated calls
Replied by: KRISTIAN MARTELL on 31-10-2013 02:58:23 PM
Gerry,
Sorry I didn't see this earlier but I do use this same process with one small change. My ICM my formula is a bit smaller. As long as you are only assigning the "To" portion of the header you can use this:

before(">",after("@",Call.SIPHeader))

That should only return your IP as well. 

Kristian

Subject: RE: user.cvp_server_info for CUCM originated calls
Replied by: Gerard O'Rourke on 01-11-2013 05:10:40 AM
Kristian ,

That is much nicer!
thank you.

Gerry
Comments
sripapan
Level 1
Level 1

IS there anyway i can modify the P-Asserted-Identity in the ICM?

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