Skip to content
Snippets Groups Projects
Commit 35ce4d25 authored by Richard Mudgett's avatar Richard Mudgett
Browse files

pjsip_configuration.c: Ignore repeated identify by methods.

Change-Id: Ied0c06043d1dfef8fdc9c9a808cf89b118119838
parent d3c4b901
No related branches found
No related tags found
No related merge requests found
...@@ -603,6 +603,10 @@ static int ident_handler(const struct aco_option *opt, struct ast_variable *var, ...@@ -603,6 +603,10 @@ static int ident_handler(const struct aco_option *opt, struct ast_variable *var,
endpoint->ident_method = 0; endpoint->ident_method = 0;
return -1; 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; endpoint->ident_method |= method;
AST_VECTOR_APPEND(&endpoint->ident_method_order, method); AST_VECTOR_APPEND(&endpoint->ident_method_order, method);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment