diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/account.c | 6 | ||||
-rw-r--r-- | src/ua.c | 2 |
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 * @@ -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; } |