<p>Added new tm callback which is called just before sending the buffer. Also modified the PRE_RAW_PROCESSING and POST_RAW_PROCESSING callbacks from script_cb to accept more than one callback(at the moment supports only one). Modified multiple modules to accept msg_send with one more paramater, which can be used to send a parameter to POST_RAW_PROCESSING callbacks. </p>
<hr>
<h4>You can merge this Pull Request by running</h4>
<pre> git pull https://github.com/ionutrazvanionita/opensips master</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/OpenSIPS/opensips/pull/386'>https://github.com/OpenSIPS/opensips/pull/386</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Stateful and stateless callbacks just before sending the message. One more parameter to msg_send</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-0">action.c</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-1">forward.c</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-2">forward.h</a>
(5)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-3">modules/dialog/dialog.c</a>
(6)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-4">modules/dialog/dlg_tophiding.c</a>
(18)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-5">modules/dialog/dlg_tophiding.h</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-6">modules/nathelper/nathelper.c</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-7">modules/seas/seas_action.c</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-8">modules/siptrace/siptrace.c</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-9">modules/sl/sl_funcs.c</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-10">modules/tm/t_funcs.c</a>
(8)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-11">modules/tm/t_funcs.h</a>
(13)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-12">modules/tm/t_fwd.c</a>
(3)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-13">modules/tm/t_hooks.c</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-14">modules/tm/t_hooks.h</a>
(20)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-15">receive.c</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-16">script_cb.c</a>
(103)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/OpenSIPS/opensips/pull/386/files#diff-17">script_cb.h</a>
(12)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/OpenSIPS/opensips/pull/386.patch'>https://github.com/OpenSIPS/opensips/pull/386.patch</a></li>
<li><a href='https://github.com/OpenSIPS/opensips/pull/386.diff'>https://github.com/OpenSIPS/opensips/pull/386.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/386">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcia7vFNIYA-ip1deEboVziPYToivzks5nP2E9gaJpZM4C_IPf.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/386"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>