mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
res_pjsip: Add/update ERROR msg if invalid URI.
ASTERISK-24499 Change-Id: Ie305153e47e922233b2ff24715e0e326e5fa3a6c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user