sms_queuing 335 Bytes
Newer Older
Daniel STAN's avatar
Daniel STAN committed
1
#!/bin/bash /usr/scripts/python.sh
2
# -*- coding: utf-8 -*-
Daniel STAN's avatar
Daniel STAN committed
3

4
from asterisk import Sms
5
import sys
Daniel STAN's avatar
Daniel STAN committed
6
from gestion import secrets_new as secrets
7 8

if __name__ == '__main__' :
Daniel STAN's avatar
Daniel STAN committed
9
    sms=Sms("dbname='django' user='crans' host='pgsql.v4.adm.crans.org'", "voip_sms")
Daniel STAN's avatar
Daniel STAN committed
10
    sms.sms_daemon('localhost', 5038, 'sms', secrets.get('asterisk_sms_passwd'))