Commit 1be3bdb6 authored by Daniel STAN's avatar Daniel STAN

[sip] send_sms: expéditeur en "@crans.org"

Pour le destinataire, ça ne semble pas marcher. Dunno why.
Ceci corrige un bug qui passait inaperçu à cause d'un autre bug de mon
CSipSimple.
parent d108b733
...@@ -40,8 +40,7 @@ if __name__ == '__main__': ...@@ -40,8 +40,7 @@ if __name__ == '__main__':
adh = ldap.search(u'uid=%s' % login)[0] adh = ldap.search(u'uid=%s' % login)[0]
# rajouter @crans.org ne semble pas marcher, pourquoi ? # rajouter @crans.org ne semble pas marcher, pourquoi ?
#own = "sip:1" + adh.dn.split(',')[0].split('aid=')[1] + "@crans.org" own = "sip:1" + str(adh['aid'][0]) + "@crans.org"
own = "sip:1" + adh.dn.split(',')[0].split('aid=')[1]
# TODO utiliser le vrai caller id # TODO utiliser le vrai caller id
# profile_manager = Profile("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_profile") # profile_manager = Profile("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_profile")
# callerid = profile_manager.num_to_callerid(own) # callerid = profile_manager.num_to_callerid(own)
...@@ -50,7 +49,7 @@ if __name__ == '__main__': ...@@ -50,7 +49,7 @@ if __name__ == '__main__':
dst = args.dst dst = args.dst
if not dst: if not dst:
dst = own + "@crans.org" dst = "sip:1" + str(adh['aid'][0])
ast_manager = Manager('sms', asterisk_sms_passwd) ast_manager = Manager('sms', asterisk_sms_passwd)
......
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