diff options
author | Joshua Colp <jcolp@digium.com> | 2016-09-07 05:02:55 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-09-07 05:02:55 -0500 |
commit | 2ff853279f406f35b9e90a9319eab96317ae8968 (patch) | |
tree | 7a06b0e42ec3046928e30978471751c08a1b1c37 | |
parent | 43ef73ad45d5d033e02b5ddf8c222e873d77ffb2 (diff) | |
parent | 35ce4d25c7cd8312e1756069034a86b672b470f2 (diff) |
Merge "pjsip_configuration.c: Ignore repeated identify by methods."
-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 333be7143..d8ae9e0a3 100644 --- a/res/res_pjsip/pjsip_configuration.c +++ b/res/res_pjsip/pjsip_configuration.c @@ -603,6 +603,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); |