diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-12-13 14:34:54 -0600 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-12-14 11:30:58 -0600 |
commit | 91145741885859471c6f07124ffda91d1b2bdd58 (patch) | |
tree | fc19b423ad793a3b0cc08c838384c8b3e7cbdcc6 /res | |
parent | 75a6afbec53141f26ad41c94c1b3499116b23508 (diff) |
res_pjsip: Add/update ERROR msg if invalid URI.
ASTERISK-24499
Change-Id: Ie305153e47e922233b2ff24715e0e326e5fa3a6c
Diffstat (limited to 'res')
-rw-r--r-- | res/res_pjsip.c | 3 | ||||
-rw-r--r-- | res/res_pjsip_session.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index 227a903cd..b1adf0e39 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -2909,7 +2909,8 @@ pjsip_dialog *ast_sip_create_dialog_uac(const struct ast_sip_endpoint *endpoint, res = pjsip_dlg_create_uac(pjsip_ua_instance(), &local_uri, NULL, &remote_uri, &target_uri, &dlg); if (res != PJ_SUCCESS) { if (res == PJSIP_EINVALIDURI) { - ast_log(LOG_ERROR, "Could not create dialog to endpoint '%s' as URI '%s' is not valid\n", + ast_log(LOG_ERROR, + "Endpoint '%s': Could not create dialog to invalid URI '%s'. Is endpoint registered?\n", ast_sorcery_object_get_id(endpoint), uri); } return NULL; diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index 9e363a18f..60850f04d 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -1736,6 +1736,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; } |