Commit 3906f827 authored by Daniel STAN's avatar Daniel STAN

[sip] send_sms.py précision de la destination.

Rajouter @crans.org à l'expéditeur semble en revanche faire échouer le script.
parent b07e677e
......@@ -39,6 +39,8 @@ if __name__ == '__main__':
ldap = lc_ldap.shortcuts.lc_ldap_readonly()
adh = ldap.search(u'uid=%s' % login)[0]
# rajouter @crans.org ne semble pas marcher, pourquoi ?
#own = "sip:1" + adh.dn.split(',')[0].split('aid=')[1] + "@crans.org"
own = "sip:1" + adh.dn.split(',')[0].split('aid=')[1]
# TODO utiliser le vrai caller id
# profile_manager = Profile("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_profile")
......@@ -48,8 +50,8 @@ if __name__ == '__main__':
dst = args.dst
if not dst:
dst = own
dst = own + "@crans.org"
ast_manager = Manager('sms', asterisk_sms_passwd)
# TODO mode hors ligne
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment