Store messages by mood so they can be grouped up
change default mood to positive and add a default colour to catch messages with a wrong mood
migrate settings so upgrading vs new is consistent
* Update CDR Stats application.
Fix. Number of calls always calculate only for all domain.
Fix. Number of missed calls ignores any search parameters and use only `inbound` filter.
Fix. Calls duration for days use only domain filter and do not use any other filters.
Add. Limit setting for number of hours to calculate statistic.
Add. When timestamp set then calculate statistic only for this period.
* Fix. Calculate `Calls per minute`
Fix. Prevent divide `0/0` when calculate `ALOC`
* Fix. `Hours` have to be integer type.
* Add. BLF indication for call forward.
To display general status of CallForward use blf like `forward+<extension>`
To display status for specific phone number use blf like `forward+<extension>/<number>`
* Fix. Escape variable in regex expression.
* Fix. Sync DND and CF blf.
* Add. `blf_subscribe` service which can handle all custom subscriptions.
To run for specific protocol it possible run as `luarun blf_subscribe.lua <PROTO>`
Change the select statement to a left outer join so when either domain_uuid or user_uuid is null it will still be able to display the data. This will keep the total number of records the same as the count done above
* dos2unix on app/database_transactions/database_transactions.php