Commit ca12224f authored by okhin's avatar okhin 🚴

Let's get rid of cause_txt

parent 7ac2cdff
Pipeline #793 passed with stage
in 2 seconds
......@@ -292,7 +292,6 @@ class Call(object):
phone_logger.info('Channel destroyed {}'.format(event['channel']['id']))
self.update((':'.join([event['channel']['state']
, event['channel']['id'].split('-')[-1]]
, event['cause_txt'])
, event['timestamp']))
return
......@@ -342,7 +341,6 @@ class Call(object):
# First we need to check if it's really a change ie, if the new state is not the previous one
self.update((':'.join([event['channel']['state']
, event['channel']['id'].split('-')[-1]]
, event['cause_txt'])
, event['timestamp'],))
phone_logger.info("New state for call {}: {}".format(event['channel']['id'], event['channel']['state']))
# We now need to take action according to our new state
......@@ -378,7 +376,6 @@ class Call(object):
'''
self.update((':'.join([event['type']
, event['channel']['id'].split('-')[-1]]
, event['cause_txt'])
, event['timestamp'],))
# We want to check if the moh bridge is opened
moh_bridge = ari.Bridge(config['asterisk'], config['moh']['name'], 'holding')
......
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