[sr-dev] [kamailio] Implement method to selectively disable MSILO offline notification (#61)

Anthony Messina notifications at github.com
Fri Jan 30 21:08:23 CET 2015


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

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 `user at example.com` 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 `user at example.com` as a recipient...  This instantly leads to thousands of MESSAGE generations.

I am thinking that it's a nice feature to have offline notification replies enabled when  `modparam("msilo", "from_address", "sip:$rU at example.com")` 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:

```
#!define FLT_MSILO_DISABLE_OFFLINE_REPLY 13
modparam("msilo", "from_address", "sip:$rU at example.com")
modparam("msilo", "disable_offline_reply_flag", FLT_MSILO_DISABLE_OFFLINE_REPLY)
```
Then m_store() checks that `from_address` is valid and that `disable_offline_reply_flag` is not set.

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/61
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20150130/ee40174d/attachment.html>


More information about the sr-dev mailing list