[SR-Users] subst_hf does unexpected append instead of a replace (WAS: How do I make subst_hf() use variables in search (not replacement)?)

Alex Villací­s Lasso a_villacis at palosanto.com
Wed Aug 13 16:41:36 CEST 2014


El 13/08/14 03:12, Daniel-Constantin Mierla escribió:
> Would be nicer not to forward all headers inline, that results in a message easy to read (especially on mobile devices) and therefore faster to answer.
>
> You use subst over contact and set contact allias, which both append values there, deleting same old content. Note that any change to sip message is not applied immediately, but kept as a diff operation. You need to use msg_apply_changes() after each 
> change that you need to be visible immediately -- read the readme of textopsx for proper usage of this function.
>
> Cheers,
> Daniel
Thanks, I will try this immediately. However, the call to add_contact_alias only runs if a websocket is detected, and I am having this issue over ordinary SIP through UDP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140813/bb098521/attachment.html>


More information about the sr-users mailing list