<p>If Kamailio is globally configured to send offline notification replies using <code>modparam("msilo", "from_address", "sip:$rU@example.com")</code>, there is currently no way to disable the offline notification reply during script processing.</p>

<p>For example, a scenario where you might want to store the original MESSAGE but not send the offline notification reply is when you are also using the IMC module.  When <code>user@example.com</code> is part of an IMC chat, but goes offline for some reason, the MSILO module will store original MESSAGE, then generate the offline notification reply back to the IMC chat, which generates another MESSAGE with <code>user@example.com</code> as a recipient...  This instantly leads to thousands of MESSAGE generations.</p>

<p>I am thinking that it's a nice feature to have offline notification replies enabled when  <code>modparam("msilo", "from_address", "sip:$rU@example.com")</code> is defined, but that the MSILO module could check the existence (nor non-existence) of a flag to determine whether or not it would generate an offline notification reply, so the logic would be something like:</p>

<pre><code>#!define FLT_MSILO_DISABLE_OFFLINE_REPLY 13
modparam("msilo", "from_address", "sip:$rU@example.com")
modparam("msilo", "disable_offline_reply_flag", FLT_MSILO_DISABLE_OFFLINE_REPLY)
</code></pre>

<p>Then m_store() checks that <code>from_address</code> is valid and that <code>disable_offline_reply_flag</code> is not set.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/61">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZWGOWCqgJscNRuwGM-GjDOu7t7rxks5nm9w3gaJpZM4DZsft.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/kamailio/kamailio/issues/61"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>