Skip to content
Snippets Groups Projects
Commit 2ff85327 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "pjsip_configuration.c: Ignore repeated identify by methods."

parents 43ef73ad 35ce4d25
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment