summaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-rw-r--r--test/account.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/account.c b/test/account.c
index 3ba2f53..bf03b03 100644
--- a/test/account.c
+++ b/test/account.c
@@ -23,7 +23,9 @@ static const char str[] =
";regint=600"
";pubint=700"
";sipnat=outbound"
- ";stunserver=\"stun:stun_user:stun_pass@stunserver.org\""
+ ";stunuser=bob@bob.com"
+ ";stunpass=taj:aa"
+ ";stunserver=\"stun:stunserver.org\""
;
@@ -57,8 +59,8 @@ int test_account(void)
ASSERT_EQ(10, account_ptime(acc));
ASSERT_EQ(600, account_regint(acc));
ASSERT_EQ(700, account_pubint(acc));
- ASSERT_STREQ("stun_user", account_stun_user(acc));
- ASSERT_STREQ("stun_pass", account_stun_pass(acc));
+ ASSERT_STREQ("bob@bob.com", account_stun_user(acc));
+ ASSERT_STREQ("taj:aa", account_stun_pass(acc));
ASSERT_STREQ("stunserver.org", account_stun_host(acc));
out: