cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
358
Views
0
Helpful
4
Replies

Modify a sip invite

Amit Shah
Level 1
Level 1

Hi 

We have a sip invite coming from Lync with the first name and the last name. The call is being denied by the ITSP because they need a DID in the from field. 

From: <sip:glenn.orcutt@1.1.1.1>;tag=1207269~b2e7ab81-19a9-49f9-adaf-eb693f51e143-47259121

 

what i would like to do is replace "glenn.orcutt" with "1111111111". I cannot use a blanket replace all header. I was trying to find out if there is a way to match the character "." (dot) in the sip profile 

4 Replies 4

Hi Amit.

Where do you need to modify the invite message?

On a Cube or CUCM?

 

Please let me know

 

Regards

 

Carlo

Please rate all helpful posts "The more you help the more you learn"

On the CUBE, sorry forgot to mention that. 

Hi Amit

 

Create voice class sip profile such as

voice class sip-profiles 100
 request INVITE sip-header From modify "\"(.*)\" <sip:(.*)@(.*)>" "\"\" <sip:1111111111@1.1.1.1>"

 

add that profile to outgoing dialpeer to lync

 

dial-peer voice 10 voip

voice-class sip profiles 100

 

HTH

 

Regards

 

Carlo

Please rate all helpful posts "The more you help the more you learn"

I was able to use this script and make it work

request INVITE sip-header From modify "<sip:[a-z]+\.[a-z]+@" "<sip:1111111111@"

 

tested it at 

http://sip-profile.54.227.241.219.xip.io/