Cut prefix from dialed number before calling it

This commit is contained in:
klonfish 2015-08-01 23:38:24 +02:00
parent 8417b33371
commit 9d3c8b8a30

View file

@ -159,6 +159,7 @@ class PhoneInterface(object):
# Try to resolve prefix # Try to resolve prefix
for p in self.__config.proxies: for p in self.__config.proxies:
if number.startswith(p.prefix): if number.startswith(p.prefix):
number = number[len(p.prefix):]
number += '@' + p.realm number += '@' + p.realm
break break
self.__core.invite(number) self.__core.invite(number)