mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 14:44:28 +00:00
Merge "pjsip_configuration.c: Ignore repeated identify by methods."
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user