PhracturedBlue / asterisk_mbox_server

GNU General Public License v3.0
6 stars 5 forks source link

Fixed python3 errors, activated code for delete #6

Open bkbilly opened 6 years ago

bkbilly commented 6 years ago

There were some problems with the code. Maybe because of the python 3, didn't test it on python 2.

Also I added the ability to delete messages and instantly refresh.

I also noticed that every-time I start this server, HomeAssistant creates an other tab of the CDR, but I didn't investigate why this is happening.

For me it had a problem with the CDR file and some records the time was empty, so this is why I added the last comment on Readme.

Hope this helps.

PhracturedBlue commented 6 years ago

What version of python? I have been using 5.0 with version 3.6 for ~6 moths without needing any of these changes? I'll have to look at why casting your data to bytes is needed, that doesn't seem right.

PhracturedBlue commented 6 years ago

As of home-assistant 0.80 the CDR will be displayed in a separate tab if it is enabled. Interspersing CDR data with actual messages made no sense. If you don't want CDR data, disable the CDR mode in asterisk_mbox_server