Hello all,
I’m trying to use smtp.py script provided within DIA in order to make a simple script that monitors the state of a number of channels and make some action according those state.
I saw that smtp.py presentation makes something similar: it monitors the channel (specified in the presentation) and then sends an email. I’d like to adapt it to use more than one channel, if possible.
I’d like to not provide the channel name in the presentation, but using the channel name in
"def queue_msg(self, channel): "
I have tryied with “dump_channel_db_as_text(cdb)” but it doesn’t work for me because it dumps all channels, and not the one that is used in “queue_msg”
Do you have some idea about how to do this?
Thanks in advance for your time.
Regards