[SR-Users] Textops replace question

Igor Olhovskiy igorolhovskiy at gmail.com
Sun Sep 25 21:47:55 CEST 2016


Hi!

I’m trying to use replace function, but got strange results.
Idea - modify Contact header

What I got as start packet. (202 Accepted on onreply_route)
…
Contact: <sip:*97 at 10.0.20.81:5060>
…
I give a command

replace("Contact: <.*>», "Contact: <" + $fu + ">");
   $fu = sip:11 at master.rufan.at

And, as a result I got

Contact: <sip:11 at master.rufan.at>sip:*97 at 10.0.20.81:5060

Why it’s adding old Contact part at the end? What can cause this? On
onreply_route I have only this command.
Thanks!
-- 
Best regards,
Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160925/e256214b/attachment.html>


More information about the sr-users mailing list