10 lines
351 B
Python
Executable file
10 lines
351 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__' :
|
|
sms=Sms("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_sms")
|
|
sms.sms_daemon('localhost', 5038, 'sms', asterisk_sms_passwd)
|