Hi All<div><br></div><div>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</div><div><br></div><div>Sending the RPID is no problem, my issue is stripping the character.</div>
<div><br></div><div>I have tried a few things to do this.</div><div><br></div><div>subst('/^P-Preferred-Identity:(.*)<sip:(0)(.*)@.*>(.*)$/P-Preferred-Identity:\1<sip:\3@domain>\4/ig')</div><div><br></div>
<div>This substitution works fine but when I read $pU it still has the leading 0</div><div><br></div><div>I also looked at using re.subst on $pU but can't get it to work.</div><div><br></div><div>What is the best way to achieve what I'm trying to do? </div>
<div><br></div><div>Sorry for hassling you!</div><div><br></div><div>Thanks,</div><div>Brian</div><div><br></div><div><br></div><div><br></div>