[sip/sms_queuing] mdp de "sms" dans secrets.py
This commit is contained in:
parent
d90a4e0634
commit
c74b61e941
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from asterisk import Sms
|
from asterisk import Sms
|
||||||
|
import sys
|
||||||
|
sys.path.insert(0, '/usr/scripts/gestion/secrets')
|
||||||
|
from secrets import asterisk_sms_passwd
|
||||||
|
|
||||||
if __name__ == '__main__' :
|
if __name__ == '__main__' :
|
||||||
|
# TODO ranger ceci dans /usr/scripts/var
|
||||||
sms=Sms('/var/spool/asterisk/sms/')
|
sms=Sms('/var/spool/asterisk/sms/')
|
||||||
sms.sms_daemon('localhost',5038,'sms','6m6lTaEOTMsyM')
|
sms.sms_daemon('localhost', 5038, 'sms', asterisk_sms_passwd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue