[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.
This commit is contained in:
parent
d108b733bd
commit
1be3bdb65c
1 changed files with 2 additions and 3 deletions
|
@ -40,8 +40,7 @@ if __name__ == '__main__':
|
|||
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]
|
||||
own = "sip:1" + str(adh['aid'][0]) + "@crans.org"
|
||||
# TODO utiliser le vrai caller id
|
||||
# profile_manager = Profile("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_profile")
|
||||
# callerid = profile_manager.num_to_callerid(own)
|
||||
|
@ -50,7 +49,7 @@ if __name__ == '__main__':
|
|||
|
||||
dst = args.dst
|
||||
if not dst:
|
||||
dst = own + "@crans.org"
|
||||
dst = "sip:1" + str(adh['aid'][0])
|
||||
|
||||
ast_manager = Manager('sms', asterisk_sms_passwd)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue