Correct documentation for the register line, specifically where the domain should be specified.

(closes issue #14367)
Reported by: Nick_Lewis


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.6
Joshua Colp 17 years ago
parent 4900d37d71
commit 5fcf193d7b

@ -7239,7 +7239,7 @@ static int sip_register(const char *value, int lineno)
if (hostname) if (hostname)
*hostname++ = '\0'; *hostname++ = '\0';
if (ast_strlen_zero(username) || ast_strlen_zero(hostname)) { if (ast_strlen_zero(username) || ast_strlen_zero(hostname)) {
ast_log(LOG_WARNING, "Format for registration is [transport://]user[:secret[:authuser]]@domain[:port][/extension][~expiry] at line %d\n", lineno); ast_log(LOG_WARNING, "Format for registration is [transport://]user[@domain][:secret[:authuser]]@host[:port][/extension][~expiry] at line %d\n", lineno);
return -1; return -1;
} }

@ -475,7 +475,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls
;----------------------------------------- OUTBOUND SIP REGISTRATIONS ------------------------ ;----------------------------------------- OUTBOUND SIP REGISTRATIONS ------------------------
; Asterisk can register as a SIP user agent to a SIP proxy (provider) ; Asterisk can register as a SIP user agent to a SIP proxy (provider)
; Format for the register statement is: ; Format for the register statement is:
; register => [transport://]user[:secret[:authuser]]@domain[:port][/extension][~expiry] ; register => [transport://]user[@domain][:secret[:authuser]]@host[:port][/extension][~expiry]
; ;
; ;
; ;

Loading…
Cancel
Save