cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1741
Views
0
Helpful
18
Replies

copy header from incoming invite to outgoing invite with sip profiles

Djeten
Level 1
Level 1

Hello,

We have a Direct Routing SIP Trunk on our SBC to MS Teams. We want to have MS Teams users to be able to call users on our CUCM and vice versa.

This works, but calls coming from MS Teams have this From header in the INVITE:

FROM: "name"<sip:+32xxxxxxxx;ext=655@sip.pstnhub.microsoft.com:5061;user=phone>;tag=65cd84363b64418681a4755c66aea53f

The From header in the outgoing INVITE then lookes like this:

From: "name" <sip:32xxxxxxxx@192.168.25.153>;tag=426821A8-1ACA

I would prefer if the From header in the outgoing INVITE would have the internal extension, like this:

From: "name" <sip:655@192.168.25.153>;tag=426821A8-1ACA

 

To do this, I have this configuration:

voice class sip-copylist 1
sip-header From


voice class sip-profiles 340
rule 10 request INVITE peer-header sip FROM copy "<sip:+32xxxxxxxx;ext=(.*)@" u06
rule 20 request INVITE sip-header From modify "<sip:32xxxxxxxx@" "<sip:\u06@"

#outgoing dial peer
dial-peer voice 340 voip
voice-class sip profiles 340

#incoming dial peer
dial-peer voice 290 voip
voice-class sip copy-list 1

 

The result of this, is that the From header in the outgoing INVITE now looks like this:

From: "name" <sip:@192.168.25.153>;tag=426821A8-1ACA

So the SIP Profile is executed, but the copy command did not work. 

Where is the error in my config?

 

18 Replies 18

*facepalm*
Then either use the latest one (17.3.6) or the recommended one (17.3.4a) or open a TAC, if the issue still persists.

Yes you can use the same version, but not the very same file, we use the version on two virtual routers that we have for a WxCC integration. Please note that from a specific version these changed the name from 1000V to 8000V, but you can just update the IOS version as for any other platform and they will change the device type at bootup.



Response Signature


Have you enabled use of inbound SIP profiles globally?

! Global Application 
voice service voip
 sip
  sip-profiles inbound

My favorite document to link to have a section on this. In Depth Explanation of Cisco IOS and IOS-XE Call Routing 



Response Signature


Yes, this is enabled globally