diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-08-29 18:06:48 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-09-02 13:18:27 -0500 |
commit | b5e753227d1774a4fdea65dec63b4377d190cc1e (patch) | |
tree | 14bbeb53e3b59490a2272902a219b562da22a194 /res | |
parent | 1bd571ef75900c78f98b047659de9d2d6c0c51b5 (diff) |
pjsip_configuration.c: Ignore repeated identify by methods.
Change-Id: Ied0c06043d1dfef8fdc9c9a808cf89b118119838
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip/pjsip_configuration.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c index e495054f6..478e5c7d7 100644 --- a/res/res_pjsip/pjsip_configuration.c +++ b/res/res_pjsip/pjsip_configuration.c @@ -606,6 +606,10 @@ static int ident_handler(const struct aco_option *opt, struct ast_variable *var, endpoint->ident_method = 0; return -1; } + if (endpoint->ident_method & method) { + /* We are already indentifying by this method. No need to do it again. */ + continue; + } endpoint->ident_method |= method; AST_VECTOR_APPEND(&endpoint->ident_method_order, method); |