[sr-dev] [kamailio/kamailio] avpops: avp_subst() support pvar as subst parameter (#2158)

Victor Seva notifications at github.com
Thu Nov 28 23:08:25 CET 2019


linuxmaniac commented on this pull request.



> +	if (get_str_fparam(&subst, msg, fp) != 0)
+	{
+		LM_ERR("error fetching subst re");
+		return -1;
+	}
+
+	LM_DBG("%s preparing %s\n", exports.name, subst.s);
+
+	se=subst_parser(&subst);
+	if (se==0)
+	{
+		LM_ERR("%s: bad subst re %s\n", exports.name, subst.s);
+		return E_BAD_RE;
+	}
+
+	return ops_subst(msg, (struct fis_param**)src, se);

Yes, indeed. Thanks!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2158#discussion_r351934586
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191128/546b43f4/attachment.html>


More information about the sr-dev mailing list