summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-09 18:25:41 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-09 18:25:41 +0200
commit40c4d6517707cee05fe0f2cfa3efc76bac962f29 (patch)
treec643365b0c15b1ad90a570b1b6a44f8b5b55ead3 /src
parent02087299c62027b41d5af7d5de033a4416cee122 (diff)
account: added accessor function to AOR
Diffstat (limited to 'src')
-rw-r--r--src/account.c6
-rw-r--r--src/ua.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/account.c b/src/account.c
index c3f26eb..8f10940 100644
--- a/src/account.c
+++ b/src/account.c
@@ -520,6 +520,12 @@ enum answermode account_answermode(const struct account *acc)
}
+const char *account_aor(const struct account *acc)
+{
+ return acc ? acc->aor : NULL;
+}
+
+
/**
* Get the authentication username of an account
*
diff --git a/src/ua.c b/src/ua.c
index bceae63..601c4fc 100644
--- a/src/ua.c
+++ b/src/ua.c
@@ -992,7 +992,7 @@ int ua_options_send(struct ua *ua, const char *uri,
*/
const char *ua_aor(const struct ua *ua)
{
- return ua ? ua->acc->aor : NULL;
+ return ua ? account_aor(ua->acc) : NULL;
}