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__' :
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'))