Commit e137e13e authored by okhin's avatar okhin 🚴

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