sms_queuing 351 Bytes
Newer Older
1 2 3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from asterisk import Sms
4 5 6
import sys
sys.path.insert(0, '/usr/scripts/gestion/secrets')
from secrets import asterisk_sms_passwd
7 8

if __name__ == '__main__' :
9
    sms=Sms("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_sms")
10
    sms.sms_daemon('localhost', 5038, 'sms', asterisk_sms_passwd)