res_pjsip: Add/update ERROR msg if invalid URI.

ASTERISK-24499

Change-Id: Ie305153e47e922233b2ff24715e0e326e5fa3a6c
This commit is contained in:
Richard Mudgett
2016-12-13 14:34:54 -06:00
parent 44e72c9d44
commit 45a5e2abc6
2 changed files with 4 additions and 1 deletions

View File

@@ -1738,6 +1738,8 @@ struct ast_sip_session *ast_sip_session_create_outgoing(struct ast_sip_endpoint
/* If we still have no URI to dial fail to create the session */
if (ast_strlen_zero(uri)) {
ast_log(LOG_ERROR, "Endpoint '%s': No URI available. Is endpoint registered?\n",
ast_sorcery_object_get_id(endpoint));
return NULL;
}