Skip to content
Snippets Groups Projects
Commit 908c6a51 authored by Matt Jordan's avatar Matt Jordan Committed by Gerrit Code Review
Browse files

Merge "chan_pjsip: Fix crash during off-nominal when no endpoint specified."

parents 5d939281 17129d2c
No related branches found
No related tags found
No related merge requests found
......@@ -1864,6 +1864,7 @@ static int request(void *obj)
if (ast_strlen_zero(endpoint_name)) {
ast_log(LOG_ERROR, "Unable to create PJSIP channel with empty endpoint name\n");
req_data->cause = AST_CAUSE_CHANNEL_UNACCEPTABLE;
return -1;
} else if (!(endpoint = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "endpoint", endpoint_name))) {
ast_log(LOG_ERROR, "Unable to create PJSIP channel - endpoint '%s' was not found\n", endpoint_name);
req_data->cause = AST_CAUSE_NO_ROUTE_DESTINATION;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment