Commit 7aab8fe8 authored by okhin's avatar okhin 🚴

Adding a Down state to the call

parent 84686033
Pipeline #801 passed with stage
in 2 seconds
...@@ -306,6 +306,9 @@ class Call(object): ...@@ -306,6 +306,9 @@ class Call(object):
chan = ari.Channel(config['asterisk'], channel) chan = ari.Channel(config['asterisk'], channel)
phone_logger.info('Hanging up channel {}'.format(channel)) phone_logger.info('Hanging up channel {}'.format(channel))
chan.delete() chan.delete()
self.update((':'.join(['Down']
, event['channel']['id'].split('-')[-1]])
, event['timestamp']))
def dtmf(self, event): def dtmf(self, event):
''' '''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment