Skip to content

Commit

Permalink
Merge pull request #15 from v12aml/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
v12aml authored Feb 6, 2017
2 parents 4b50e67 + b432503 commit b180fc6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ippbx.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def asterisk_sip_user_config(phonenum, username):
log_debug("Generating SIP config for {} {}".format(phonenum, username))
user_pass = gen_user_pass(phonenum)
user_config = "; AUTOGENERATED, do not modify manually\n"
user_config += "; {} <{}> {}\n\n".format(phonenum, username, user_pass)
user_config += "[{}]\n".format(phonenum)
user_config += "type=friend\n"
user_config += "host=dynamic\n"
Expand Down Expand Up @@ -101,8 +102,8 @@ def asterisk_pjsip_user_config(phonenum, username):
log_debug("Generating PJSIP config for {} {}".format(phonenum, username))
user_pass = gen_user_pass(phonenum)
user_config = "; AUTOGENERATED, do not modify manually\n"
user_config += ";{} <{}> {}".format(phonenum, username, user_pass)
user_config += "\n"
user_config += "; {} <{}> {}\n".format(phonenum, username, user_pass)
user_config += "\n\n"
user_config += "[{}]\n".format(phonenum)
user_config += "type=auth\n"
user_config += "auth_type=userpass\n"
Expand Down

0 comments on commit b180fc6

Please sign in to comment.