Commit 0d179e4e authored by okhin's avatar okhin 🚴

Adding an eception on bridge creation

parent cd400f3b
Pipeline #798 passed with stage
in 2 seconds
......@@ -350,7 +350,10 @@ class Call(object):
# Step 1 create a bridge
bridge = ari.Bridge(config['asterisk'], self.id, 'mixing')
phone_logger.debug("Creating a bridges to connect {} to {}".format(self.caller, self.callee,))
bridge.create()
try:
bridge.create()
except Exception as e:
raise e
# Step 2, moving channels
channels = ",".join([self.id + '-' + self.caller, self.id + '-' + self.callee])
phone_logger.debug("Moving channels to the created bridge: {}".format(bridge.name,))
......
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