[sip/asterisk] Retrait d'une fonction inutile
This commit is contained in:
parent
78385c4535
commit
4060df409c
1 changed files with 0 additions and 10 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue