cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

AMA-CUCM Troubleshooting: Best Practices for Reading Trace Files

562
Views
5
Helpful
6
Replies
Beginner

Reading the SIP header from the UCCX application

I'm getting calls back into a UCCX application and would like to get information that was added to the SIP header of the call and assign it to a variable. This possible for me to do?  Any help would be greatly appreciated.

CCM 11.5.1.12900-21

UCCX 10.6.1.11002-15

 

6 REPLIES 6
VIP Advisor

Re: Reading the SIP header from the UCCX application

No, UCCX is not a SIP based application (It's CTI), and therefore, would not receive SIP messages from CUCM. Depending on the data you're looking for, there might be a way to get it. What are you looking for?

Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
Beginner

Re: Reading the SIP header from the UCCX application

Not the answer I was hoping for, but when I pass this call to another server by Trunk, the CallID does not match the call ID that UCCX gets, but if I pass the call back; I get all the data. I was hoping injecting a custom SIP variable that I could somehow read would be the answer. I need a way to know what call is on the custom server, so data manipulated their can follow the call once it is passed back to callmanager and then to UCCX. I could setup a group of numbers and send each consecutive call to another number, so the custom server knows what call it is by the last dialed number, but would rather not do it that way if it can be helped.
Beginner

Re: Reading the SIP header from the UCCX application

Any identifying information to recognize the call on the external server that the call is being sent to by a trunk.  Below is an example packet, do any of these fields translate to anything a CCX script can see?  The calling number and called number might not be enough to insure that it is the same call on both sides.  When the call is returned, UCX recognizes it as the call sent, but I need something to tie it together so data can be manipulated and maintained from the server it is being sent to.

 

INVITE sip:5001@10.31.20.14:5060 SIP/2.0^M

Content-Length: 0^M

Max-Forwards: 70^M

Contact: <sip:5555555555@10.31.20.46:5060;transport=tcp>^M

Remote-Party-ID: <sip: 5555555555@10.31.20.46>;party=calling;screen=yes;privacy=off^M

P-Asserted-Identity: sip: 5555555555@10.31.20.46^M

Session-Expires: 1800^M

Cisco-Guid: 2298728704-0000065536-0000107539-0773070602^M

Session-ID: e917d9e2a7a168272a79ddbc29788751;remote=00000000000000000000000000000000^M

Call-Info: <sip:10.31.20.46:5060>;method="NOTIFY;Event=telephone-event;Duration=500"^M

Call-Info: <urn:x-cisco-remotecc:callinfo>;x-cisco-video-traffic-class=VIDEO_UNSPECIFIED^M

Allow-Events: presence^M

Allow-Events: kpml^M

Expires: 180^M

CSeq: 101 INVITE^M

Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY^M

User-Agent: Cisco-CUCM11.5^M

Min-SE: 1800^M

Supported: timer, resource-priority, replaces, X-cisco-srtp-fallback, Geolocation^M

Call-ID: 8903d100-abb1c1d3-374b2-2e141f0a@10.31.20.46^M

Date: Wed, 28 Mar 2018 16:24:51 GMT^M

To: sip:5001@10.31.20.14^M

From: sip: 5555555555@10.31.20.46;tag=1045502~f1648bc3-8612-4779-8d80-973a4bc3abbb-29788761^M

Via: SIP/2.0/TCP 10.31.20.46:5060;branch=z9hG4bK71b70c432c53;received=10.31.20.46;rport=33712^M

 

Information I can get from UCX and log.

Contact ID: 363030/1~

~*****Contact Info begin*****

~Type: CallContact

~Language: en_US

~ASR Supported: false

~Active: true

~Aborting: false

~Session: Session[id=001-0x28fa6dad2b,parent=null,active=true,state=SESSION_IN_USE,time=1522254281167]

~Handled: false

~Identifier: 58085

~Implementation ID: 363030/1

~Sequence Number: 0

~Creation Time: 12:24:41 PM EDT

~Inbound: true

~*****Call Contact Info begin*****

~Calling Number: 5555555555

~Called Number: 1310

~Arrival Type: FORWARD_ALL

~Last Redirected Number: 4588

~Original Called Number: 4588

~Dialed Number: 1310

~Session ID: 176000183595

**Started: ** Time: 12:24:43 PM EDT~

Database Accessed: Call Tracking: Success~

Transferred 5001 Time: 12:24:52 PM EDT~

**End** Time: 12:24:52 PM EDT~

Contact ID: 363030/1~

 

Highlighted
Enthusiast

Re: Reading the SIP header from the UCCX application

Hi Anthony, sorry to hijack this discussion but getting nowhere looking for a solution to my problem and this sounded good.

I'm looking for CUCM to get some information stored in a customised SIP header to UCCX as a custom variable.

This is an example of what i need to get to UCCX, the highlighted piece is the custom information.

INVITE sip:+44173771234@1.2.3.4 SIP/2.0

Via: SIP/2.0/UDP 4.5.6.7;rport;branch=z9hG4bK8Q5aty36DHH3H

Max-Forwards: 68

From: "02071234567" <sip:02071234567@4.5.6.7>;tag=ejZNt92jQ6Xaa

To: <sip:+44173771234@1.2.3.4>

Call-ID: 734c91a1-b73e-1235-dabd-09563c668ba3

CSeq: 107265170 INVITE

Contact: <sip:gw+LON@4.5.6.7:5060;transport=udp;gw=LON>

User-Agent: FreeSWITCH-mod_sofia/1.4.26~64bit

Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY

Supported: path, replaces

Allow-Events: talk, hold, conference, refer

Content-Type: application/sdp

Content-Disposition: session

Content-Length: 260

X-FS-Support: update_display,send_info

Remote-Party-ID: "02071234567" <sip:02071234567@4.5.6.7>;party=calling;screen=yes;privacy=off

X- ictIgrpId: 1234

X- ictCallRef: 4567890

v=0

o=FreeSWITCH 1495180930 1495180931 IN IP4 4.5.6.7

s=FreeSWITCH

c=IN IP4 4.5.6.7

t=0 0

m=audio 21540 RTP/AVP 0 101 13

a=rtpmap:0 PCMU/8000

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-16

a=rtcp:21541 IN IP4 4.5.6.7

a=ptime:20

 

Any ideas?

 

Thanks

Doug

VIP Advisor

Re: Reading the SIP header from the UCCX application

As one option, use SIP Profiles and copy headers on CUBE to move those values into the RPID header, the field UCCX receives as the calling number. So for example, you could have UCCX end up with 02071234567*1234*4567890, where you then break down the values with the separator.

 

E.g.,

 

voice class sip-profiles 2200
 request INVITE peer-header sip X-ictIgrpId copy "(.*)" u01
 request INVITE peer-header sip X-ictCallRef copy "(.*)" u02
 request INVITE sip-header Remote-Party-ID modify "sip:(.*)@" "sip:\1*\u01*\u02@"
!

 

Otherwise, there might be an option to post data to a shared resource, and read from it from within the script, but I think that would be much more complex.

 


Anthony Holloway

Please use the star ratings to help drive great content to the top of searches.
Enthusiast

Re: Reading the SIP header from the UCCX application

Hi Anthony,

 

thanks for the idea, i will investigate thsi further.

 

Doug

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards