11 lines
353 B
Python
Executable file
11 lines
353 B
Python
Executable file
#!/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', asterisk_sms_passwd)
|