pjsip_configuration.c: Ignore repeated identify by methods.

Change-Id: Ied0c06043d1dfef8fdc9c9a808cf89b118119838
This commit is contained in:
Richard Mudgett
2016-08-29 18:06:48 -05:00
parent d3c4b901d4
commit 35ce4d25c7

View File

@@ -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);