pjsip_configuration.c: Ignore repeated identify by methods.

Change-Id: Ied0c06043d1dfef8fdc9c9a808cf89b118119838
changes/06/3806/1
Richard Mudgett 9 years ago
parent d3c4b901d4
commit 35ce4d25c7

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

Loading…
Cancel
Save