mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
res_pjsip: Allow configuration of endpoint identifier query order
Updated some documentation stating that endpoint identifiers registered without a name are place at the front of the lookup list. Also renamed register method 'ast_sip_register_endpoint_identifier_by_name' to 'ast_sip_register_endpoint_identifier_with_name' ASTERISK-24840 Reported by: Mark Michelson git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1972,7 +1972,7 @@ struct endpoint_identifier_list {
|
||||
|
||||
static AST_RWLIST_HEAD_STATIC(endpoint_identifiers, endpoint_identifier_list);
|
||||
|
||||
int ast_sip_register_endpoint_identifier_by_name(struct ast_sip_endpoint_identifier *identifier,
|
||||
int ast_sip_register_endpoint_identifier_with_name(struct ast_sip_endpoint_identifier *identifier,
|
||||
const char *name)
|
||||
{
|
||||
char *prev, *current, *identifier_order;
|
||||
@@ -2054,7 +2054,7 @@ int ast_sip_register_endpoint_identifier_by_name(struct ast_sip_endpoint_identif
|
||||
|
||||
int ast_sip_register_endpoint_identifier(struct ast_sip_endpoint_identifier *identifier)
|
||||
{
|
||||
return ast_sip_register_endpoint_identifier_by_name(identifier, NULL);
|
||||
return ast_sip_register_endpoint_identifier_with_name(identifier, NULL);
|
||||
}
|
||||
|
||||
void ast_sip_unregister_endpoint_identifier(struct ast_sip_endpoint_identifier *identifier)
|
||||
|
Reference in New Issue
Block a user