Merge "res_pjsip_endpoint_identifier_ip.c: Remove unnecessary requirement."
This commit is contained in:
commit
e4ee41da4d
|
@ -238,14 +238,7 @@ static struct ast_sip_endpoint *ip_identify(pjsip_rx_data *rdata)
|
||||||
}
|
}
|
||||||
|
|
||||||
endpoint = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "endpoint", match->endpoint_name);
|
endpoint = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "endpoint", match->endpoint_name);
|
||||||
|
|
||||||
if (endpoint) {
|
if (endpoint) {
|
||||||
if (!(endpoint->ident_method & AST_SIP_ENDPOINT_IDENTIFY_BY_IP)) {
|
|
||||||
ast_debug(3, "Endpoint '%s' found for '%s' but 'ip' method not supported'\n", match->endpoint_name,
|
|
||||||
ast_sockaddr_stringify(&addr));
|
|
||||||
ao2_cleanup(endpoint);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
ast_debug(3, "Retrieved endpoint %s\n", ast_sorcery_object_get_id(endpoint));
|
ast_debug(3, "Retrieved endpoint %s\n", ast_sorcery_object_get_id(endpoint));
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_WARNING, "Identify section '%s' points to endpoint '%s' but endpoint could not be looked up\n",
|
ast_log(LOG_WARNING, "Identify section '%s' points to endpoint '%s' but endpoint could not be looked up\n",
|
||||||
|
|
Loading…
Reference in New Issue