We have SIP invite send by CUCM with two diversion headers. Exchange 2013 (CU20) chooses the last one with E.164 format number for diversion and it fails because the UM dialplan URI is set as tel extn. Can we have the first diversion header selected by exchange or can we translate this E.164 to tel extn format in exchange? Please advise
Request from CUCM
_____________________
INVITE sip:phoneExtn@server.domain.com:5060 SIP/2.0
Via: SIP/2.0/TCP CUCMIP4:5060;branch=z9hG4bK59df467444b77f5
From: <sip:+CallerE.164@CUCMIP4>;tag=355544913~7de2e891-a047-4485-a5f1-44be2c188e04-118702896
To: <sip:phoneExtn@server.domain.com>
Date: Thu, 30 Aug 2018 06:28:09 GMT
Call-ID: db636800-b8718e79-58bd84c-b71710a@CUCMIP4
Supported: timer,resource-priority,replaces
Min-SE: 1800
User-Agent: Cisco-CUCM10.5
Allow: INVITE, OPTIONS, INFO, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY
CSeq: 101 INVITE
Expires: 180
Allow-Events: presence, kpml
Supported: X-cisco-srtp-fallback
Supported: Geolocation
Call-Info: <sip:CUCMIP4:5060>;method="NOTIFY;Event=telephone-event;Duration=500"
Cisco-Guid: 3680724992-0000065536-0000459432-0191983882
Session-Expires: 10800
Diversion: "userDisplayName" <sip:EUMExtn@CUCMIP4>;reason=no-answer;privacy=off;screen=yes
Diversion: "userDisplayName" <sip:+CalleeE.164@CUCMIP4>;reason=no-answer;privacy=off;screen=yes
P-Asserted-Identity: <sip:+CalleeE.164@CUCMIP4>
Remote-Party-ID: <sip:+CallerE.164@CUCMIP4>;party=calling;screen=yes;privacy=off
Contact: <sip:+CallerE.164@CUCMIP4:5060;transport=tcp>
Max-Forwards: 69
Content-Type: application/sdp
Content-Length: 207
v=0
o=CiscoSystemsCCM-SIP 355544913 1 IN IP4 CUCMIP4
s=SIP Call
c=IN IP4 t=0 0
m=audio 18244 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
Response from Exchange server
_____________________________
SIP/2.0 403 Forbidden
From: <sip:+CallerE.164@CUCMIP4>;tag=355544913~7de2e891-a047-4485-a5f1-44be2c188e04-118702896
To: <sip:phoneExtn@server.domain.com>;epid=9B7BC7AC14;tag=e0c2b8a58
CSEQ: 101 INVITE
CALL-ID: db636800-b8718e79-58bd84c-b71710a@CUCMIP4
VIA: SIP/2.0/TCP CUCMIP4:5060;branch=z9hG4bK59df467444b77f5
CONTENT-LENGTH: 0
PRIORITY: Normal
SUPPORTED: Replaces
P-ASSERTED-IDENTITY: <sip:+CalleeE.164@CUCMIP4>
SERVER: RTCC/5.0.0.0 MSExchangeUM/15.00.1367.000
ms-diagnostics-public: 15606;source="server.domain.com";reason="Diversion header format is incompatible with the URI type of the UM dial plan. Diversion number: +CalleeE.164."