06-17-2015 06:36 AM - edited 03-17-2019 03:23 AM
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
06-17-2015 06:48 AM
Hi Amit.
Where do you need to modify the invite message?
On a Cube or CUCM?
Please let me know
Regards
Carlo
06-17-2015 06:55 AM
On the CUBE, sorry forgot to mention that.
06-17-2015 07:48 AM
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
06-17-2015 07:54 AM
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/
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide