summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/examples/accounts6
-rw-r--r--modules/account/account.c12
2 files changed, 10 insertions, 8 deletions
diff --git a/docs/examples/accounts b/docs/examples/accounts
index 2b4a39c..ca4f2a8 100644
--- a/docs/examples/accounts
+++ b/docs/examples/accounts
@@ -40,19 +40,19 @@
#
# Use SIP Outbound over TCP, with ICE for Media NAT Traversal, and DTLS-SRTP for encryption
#
-<sip:user:pass@example.com>;sipnat=outbound;outbound="sip:example.com;transport=tcp";medianat=ice;mediaenc=dtls_srtp
+<sip:user@example.com>;sipnat=outbound;outbound="sip:example.com;transport=tcp";medianat=ice;mediaenc=dtls_srtp;auth_pass=pass
#
# Use ICE for Media NAT Traversal, using a specific STUN-server
#
-<sip:user:pass@example.com>;medianat=ice;stunserver="stun:username:password@stunserver.org"
+<sip:user@example.com>;medianat=ice;stunserver="stun:username:password@stunserver.org";auth_pass=pass
#
# Force audio-codec 'opus' and video-codec 'vp8'
#
-<sip:user:pass@example.com>;audio_codecs=opus/48000/2;video_codecs=vp8
+<sip:user@example.com>;audio_codecs=opus/48000/2;video_codecs=vp8;auth_pass=pass
# ... more examples can be added here ...
diff --git a/modules/account/account.c b/modules/account/account.c
index 25e4c40..74c047f 100644
--- a/modules/account/account.c
+++ b/modules/account/account.c
@@ -20,7 +20,7 @@
* Examples:
\verbatim
"User 1 with password prompt" <sip:user@domain.com>
- "User 2 with stored password" <sip:user:pass@domain.com>
+ "User 2 with stored password" <sip:user@domain.com>;auth_pass=pass
"User 2 with ICE" <sip:user@1.2.3.4;transport=tcp>;medianat=ice
"User 3 with IPv6" <sip:user@[2001:df8:0:16:216:6fff:fe91:614c]:5070>
\endverbatim
@@ -84,11 +84,13 @@ static int account_write_template(const char *file)
"#\n"
"# Examples:\n"
"#\n"
- "# <sip:user:secret@domain.com;transport=tcp>\n"
- "# <sip:user:secret@1.2.3.4;transport=tcp>\n"
- "# <sip:user:secret@"
+ "# <sip:user@domain.com;transport=tcp>"
+ ";auth_pass=secret\n"
+ "# <sip:user@1.2.3.4;transport=tcp>"
+ ";auth_pass=secret\n"
+ "# <sip:user@"
"[2001:df8:0:16:216:6fff:fe91:614c]:5070"
- ";transport=tcp>\n"
+ ";transport=tcp>;auth_pass=secret\n"
"#\n"
"#<sip:%s@%s>;auth_pass=%s\n", login, domain, pass);
if (r < 0)