diff options
author | George Joseph <george.joseph@fairview5.com> | 2014-10-09 23:35:21 +0000 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2014-10-09 23:35:21 +0000 |
commit | bbc56596fda47dfeecda1e2c14446444d427e340 (patch) | |
tree | b6d8852c82c5feb84c8b41cd7f05400b8c2deebe | |
parent | e2ae7bd79f3fb4dc1ed73110ca7f33c92c8afe5e (diff) |
res_pjsip_phoneprov_provider: fix compile breakage on AST_VECTOR
endpoint->inbound_auths was changed to a vector in 13 and I
committed the 12 patch instead of the 13 patch.
Tested-by: George Joseph
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@425052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | res/res_pjsip_phoneprov_provider.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip_phoneprov_provider.c b/res/res_pjsip_phoneprov_provider.c index b09e4594d..ceb100886 100644 --- a/res/res_pjsip_phoneprov_provider.c +++ b/res/res_pjsip_phoneprov_provider.c @@ -258,10 +258,10 @@ static int load_endpoint(const char *id, const char *endpoint_name, struct varsh } snprintf(port_string, 6, "%d", pj_sockaddr_get_port(&transport->host)); - if (!endpoint->inbound_auths.num) { + if (!AST_VECTOR_SIZE(&endpoint->inbound_auths)) { return 0; } - auth_name = endpoint->inbound_auths.names[0]; + auth_name = AST_VECTOR_GET(&endpoint->inbound_auths, 0); auth = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "auth", auth_name); if (!auth) { |