[SR-Users] Modifying $pU
dotnetdub
dotnetdub at gmail.com
Tue Sep 21 22:47:56 CEST 2010
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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100921/d381a9bb/attachment.htm>
More information about the sr-users
mailing list