Commit e137e13e authored by okhin's avatar okhin
Browse files

The test for caller/callee needs to be sanitized

parent 0d179e4e
Pipeline #799 passed with stage
in 2 seconds
......@@ -346,7 +346,7 @@ class Call(object):
# We now need to take action according to our new state
if event['channel']['state'] == 'Up':
# Are we the caller or the callee?
if event['channel']['id'].endswith(self.callee):
if event['channel']['id'].endswith(sanitize_phonenumber(self.callee)):
# Step 1 create a bridge
bridge = ari.Bridge(config['asterisk'],, 'mixing')
phone_logger.debug("Creating a bridges to connect {} to {}".format(self.caller, self.callee,))
Supports Markdown
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