Hi All
I am receiving a Preferred-Identity from a customer which I need to modify (strip the first character a 0) and then send it as Remote Party ID
Sending the RPID is no problem, my issue is stripping the character.
I have tried a few things to do this.
subst('/^P-Preferred-Identity:(.*)<sip:(0)(.*)@.*>(.*)$/P-Preferred-Identity:\1<sip:\3@domain>\4/ig')
This substitution works fine but when I read $pU it still has the leading 0
I also looked at using re.subst on $pU but can't get it to work.
What is the best way to achieve what I'm trying to do?
Sorry for hassling you!
Thanks,
Brian