sip: se connecte à pgsql.v4

This commit is contained in:
Daniel STAN 2015-07-03 18:05:18 +02:00
parent 32136b25fa
commit 7ca15d7527
6 changed files with 6 additions and 6 deletions

View file

@ -6,7 +6,7 @@ from sip.asterisk import Profile
if __name__ == '__main__' :
if len(sys.argv)>1:
profile = Profile("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_profile")
profile = Profile("dbname='django' user='crans' host='pgsql.v4.adm.crans.org'", "voip_profile")
sys.stdout.write(profile.num_to_callerid(sys.argv[1]))
else:
print >> sys.stderr, "Usage %s {user}" % sys.argv[0]

View file

@ -5,7 +5,7 @@ from sip.asterisk import Profile
if __name__ == '__main__' :
if len(sys.argv)>3:
profile = Profile("dbname='django' user='crans' host='pgsql.adm.crans.org'", "voip_profile")
profile = Profile("dbname='django' user='crans' host='pgsql.v4.adm.crans.org'", "voip_profile")
profile.update_pin(sys.argv[2], sys.argv[3])
else:
print >> sys.stderr, "Usage %s {seed} {number} {pin}" % sys.argv[0]