cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
228
Views
0
Helpful
2
Replies
Beginner

Cisco CUBE in sip invite sdp header copy c=IN IP4 to a outgoing sip header

Hello,

the concept is that the customer will use the originating IP address in the invite to identify the location where the phone is. This will be translated in a database to the emergency prefix for the correct emergency routing.

 

To achieve this, I am attempting to get the sdp header c=IN IP4 <ip address>, of the initial SIP INVITE received from the CUCM, copied out and added to the outgoing SIP INVITE.

The INVITE has the origiating IP address of the phone, once the INVITE is sent out this parameter is overwritten with the CUBE IP.

 

In the outgoing SIP Invite I have created a SIP header, but I have not been able to get the value c=IN IP4 <ip address> successfully copied.

 

my plan was to use copy list as described in this document:

Cisco Unified Border Element Fundamentals and Basic Setup, Cisco IOS Release 15M&T

Chapter on SIP Provfiles, section Copying Contents From an Incoming Header and Modifying the Outgoing Header

 

Is this possible?

Thanks

 

 

2 REPLIES 2
Enthusiast

Re: Cisco CUBE in sip invite sdp header copy c=IN IP4 to a outgoing sip header

If you manage to copy the header, is the call actually going to work?  You would have the external Invite sent outside your organisation but with an internal IP address of the phone as the media end point.  Can you ITSP route directly to your phones?  Or do they ignore the SDP for media information and just send back to the source that they see your RTP coming from?

Highlighted
Beginner

Re: Cisco CUBE in sip invite sdp header copy c=IN IP4 to a outgoing sip header

Hi Toni, thanks for your reply, well there is SBC‘s in front of the ITSP, which the customer manage and connect to multiple ITSP‘s. The emergency routing will be based on the IP of the phone calling which will be stripped on the SBC‘s.

The incoming SIP Profile on my CUCM facing Dial-peer, this does not seen to work.

voice class sip-profiles 410
request INVITE sdp-header Audio-Attribute copy "c=IN IP4(.*)" u10

The outgoing sip profile on the dial-peer toward the SBC,s

voice class sip-profiles 201
request INVITE peer-header sip P-Asserted-Identity copy "(.*)@" u07
request INVITE sip-header P-Asserted-Identity add "P-Asserted-Identity:"
request INVITE sip-header From copy "sip:(.*)@" u03
request INVITE sip-header Call-ID copy "@(.*)" u06
request INVITE sip-header Contact modify ":.*" ": \u07@\u06>"
request INVITE sip-header Contact modify ": @" ": <sip:\u03@"
request INVITE sip-header P-Asserted-Identity modify ":.*" ": \u07@\u06>"
request INVITE sip-header P-Asserted-Identity modify ": @" ": <sip:\u03@"
request INVITE sip-header P-Network-Info add "P-Network-Info: c=IN IP4(.*)"
request INVITE sip-header P-Network-Info modify " c=IN IP4(.*)" " c=IN IP4\u10"
request ANY sip-header Remote-Party-ID remove
request ANY sip-header Resource-Priority remove
request ANY sip-header Cisco-Guid remove
response ANY sip-header Cisco-Guid remove
request INVITE sip-header P-Preferred-Identity remove
request ANY sdp-header Audio-Attribute modify "(a=sendonly|a=inactive)" "a=sendrecv"
request ANY sdp-header Audio-Connection-Info modify "0.0.0.0" "10.0.0.69"
response ANY sdp-header Audio-Attribute modify "(a=sendonly|a=inactive)" "a=sendrecv"
response ANY sdp-header Audio-Connection-Info modify "0.0.0.0" "10.0.0.69"

 

Result on the outgoing sip invite is:

Sent:
INVITE sip:+27793176007@195.0.3.131:5060 SIP/2.0
Via: SIP/2.0/TCP 10.0.0.69:5060;branch=z9hG4bK750F92681
From: <sip:+27443279412@10.0.0.69>;tag=52F6FA26-9BA
To: <sip:+27793176007@195.0.3.131>
Date: Thu, 29 Aug 2019 13:39:59 GMT
Call-ID: 543C53E7-C99911E9-B924DFEE-EF91DE59@10.0.0.69
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
User-Agent: Cisco-SIPGateway/IOS-16.9.3
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1567085999
Contact: <sip:+27443279412@10.0.0.69>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 68
Privacy: none
Session-ID: 0000179800105000a00002004c4f4f50;remote=00000000000000000000000000000000
Session-Expires: 1800
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 314
P-Asserted-Identity: <sip:+27443279412@10.0.0.69>
P-Network-Info: c=IN IP4

v=0
o=CiscoSystemsSIP-GW-UserAgent 1851 4787 IN IP4 10.0.0.69
s=SIP Call
c=IN IP4 10.0.0.69
t=0 0
m=audio 8248 RTP/AVP 8 0 18 101
c=IN IP4 10.0.0.69
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

 

 

Thanks

Marius

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