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@10.0.20.81:5060>
…
I give a command

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

And, as a result I got

Contact: <sip:1...@master.rufan.at>sip:*97@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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to