[sip/asterisk] Retrait d'une fonction inutile

This commit is contained in:
Valentin Samir 2013-11-11 19:28:49 +01:00
parent 78385c4535
commit 4060df409c

View file

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