Commit af2af47b authored by Luci Stanescu's avatar Luci Stanescu

Added support for eliminating special phone number formatting

parent 1bd71e51
......@@ -1769,6 +1769,7 @@ class SessionManager(object):
@staticmethod
def create_uri(account, address):
address = re.sub(r'\(\s?0\s?\)|[-() ]', '', address)
if not address.startswith('sip:') and not address.startswith('sips:'):
address = 'sip:' + address
if '@' not in address:
......
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