File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ def asterisk_sip_user_config(phonenum, username):
67
67
log_debug ("Generating SIP config for {} {}" .format (phonenum , username ))
68
68
user_pass = gen_user_pass (phonenum )
69
69
user_config = "; AUTOGENERATED, do not modify manually\n "
70
+ user_config += "; {} <{}> {}\n \n " .format (phonenum , username , user_pass )
70
71
user_config += "[{}]\n " .format (phonenum )
71
72
user_config += "type=friend\n "
72
73
user_config += "host=dynamic\n "
@@ -101,8 +102,8 @@ def asterisk_pjsip_user_config(phonenum, username):
101
102
log_debug ("Generating PJSIP config for {} {}" .format (phonenum , username ))
102
103
user_pass = gen_user_pass (phonenum )
103
104
user_config = "; AUTOGENERATED, do not modify manually\n "
104
- user_config += ";{} <{}> {}" .format (phonenum , username , user_pass )
105
- user_config += "\n "
105
+ user_config += "; {} <{}> {}\n " .format (phonenum , username , user_pass )
106
+ user_config += "\n \n "
106
107
user_config += "[{}]\n " .format (phonenum )
107
108
user_config += "type=auth\n "
108
109
user_config += "auth_type=userpass\n "
You can’t perform that action at this time.
0 commit comments