From c74b61e94136fe0cfdc3db0fb6cf0cbc98992890 Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Wed, 14 Aug 2013 01:04:31 +0200 Subject: [PATCH] [sip/sms_queuing] mdp de "sms" dans secrets.py --- sip/sms_queuing | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sip/sms_queuing b/sip/sms_queuing index af10ea63..19297476 100755 --- a/sip/sms_queuing +++ b/sip/sms_queuing @@ -1,7 +1,11 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- from asterisk import Sms +import sys +sys.path.insert(0, '/usr/scripts/gestion/secrets') +from secrets import asterisk_sms_passwd if __name__ == '__main__' : + # TODO ranger ceci dans /usr/scripts/var sms=Sms('/var/spool/asterisk/sms/') - sms.sms_daemon('localhost',5038,'sms','6m6lTaEOTMsyM') + sms.sms_daemon('localhost', 5038, 'sms', asterisk_sms_passwd)