Browse Source

Cut prefix from dialed number before calling it

pull/1/head
klonfish 9 years ago
parent
commit
9d3c8b8a30
  1. 1
      phoneinterface.py

1
phoneinterface.py

@ -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)

Loading…
Cancel
Save