Commit 4060df40 authored by Valentin Samir's avatar Valentin Samir

[sip/asterisk] Retrait d'une fonction inutile

parent 78385c45
......@@ -82,14 +82,6 @@ class Sms(object):
except (socket.error, NullRecv):
pass
def _mkdirs(self, path):
try:
os.makedirs(path)
except OSError as exc:
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass
else: raise
def sms_delay(self, src, dst, body, user, body_type='str'):
if not body_type in ["str", "base64"]:
raise EnvironmentError("body_type sould be 'str' ou 'base64' not %r" % body_type)
......@@ -100,8 +92,6 @@ class Sms(object):
cur.close()
conn.close()
def _send_sms(self, manager, params):
if params['PeerStatus'] in ['Reachable','Registered']:
num = params['Peer'].split('/')[1]
......
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