summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-01-21 16:49:57 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-01-21 16:49:57 +0100
commitecf33122333fd7e6f4e70f93cc2c3baf3b22bdf3 (patch)
tree4662a0d4a0097e302996fef8d01b43f3668b4066 /modules
parent4937fe4d40e83a2c018e398c693c9f4ab9696675 (diff)
account: add parameters 'stunuser' and 'stunpass'
the STUN username and password can now be configured with explicit parameters, example: ;stunuser=USERNAME;stunpass=PASSWORD;stunserver=stun:server.org Ref. https://github.com/alfredh/baresip/issues/200
Diffstat (limited to 'modules')
-rw-r--r--modules/account/account.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/account/account.c b/modules/account/account.c
index 2b5b7f4..ea9d819 100644
--- a/modules/account/account.c
+++ b/modules/account/account.c
@@ -75,6 +75,8 @@ static int account_write_template(const char *file)
"# ;regq=0.5\n"
"# ;rtpkeep={zero,stun,dyna,rtcp}\n"
"# ;sipnat={outbound}\n"
+ "# ;stunuser=STUN/TURN/ICE-username\n"
+ "# ;stunpass=STUN/TURN/ICE-password\n"
"# ;stunserver=stun:[user:pass]@host[:port]\n"
"# ;video_codecs=h264,h263,...\n"
"#\n"