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.
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
Where do you need to modify the invite message?
On a Cube or CUCM?
Please let me know
Create voice class sip profile such as
voice class sip-profiles 100
request INVITE sip-header From modify "\"(.*)\" <sip:(.*)@(.*)>" "\"\" <sip:email@example.com>"
add that profile to outgoing dialpeer to lync
dial-peer voice 10 voip
voice-class sip profiles 100
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