sip: se connecte à pgsql.v4
This commit is contained in:
parent
32136b25fa
commit
7ca15d7527
6 changed files with 6 additions and 6 deletions
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue