mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Merge "sip_to_pjsip: Write username even without authname."
This commit is contained in:
@@ -995,9 +995,8 @@ class Registration:
|
|||||||
if hasattr(self, 'secret') and self.secret:
|
if hasattr(self, 'secret') and self.secret:
|
||||||
set_value('password', self.secret, auth_section, pjsip, nmapped,
|
set_value('password', self.secret, auth_section, pjsip, nmapped,
|
||||||
'auth')
|
'auth')
|
||||||
if hasattr(self, 'authuser'):
|
set_value('username', self.authuser if hasattr(self, 'authuser')
|
||||||
set_value('username', self.authuser or self.user, auth_section,
|
else self.user, auth_section, pjsip, nmapped, 'auth')
|
||||||
pjsip, nmapped, 'auth')
|
|
||||||
set_value('outbound_auth', auth_section, section, pjsip, nmapped,
|
set_value('outbound_auth', auth_section, section, pjsip, nmapped,
|
||||||
'registration')
|
'registration')
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user