summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-12-20 05:29:56 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-12-20 05:29:56 -0600
commitfb914762eeb261d1a5125d29348e26797531dfdc (patch)
tree02c9a98660b73029723c348ac0a64b3301e93000
parent270e011fb481ae67ecfbe8f9a5f1ef779d03983a (diff)
parent45a5e2abc6f7fc4e011c734c5a0ff743dc610f84 (diff)
Merge "res_pjsip: Add/update ERROR msg if invalid URI."
-rw-r--r--res/res_pjsip.c3
-rw-r--r--res/res_pjsip_session.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index 144621f6b..6df9b704c 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -2911,7 +2911,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 527cbd90c..be07e94ab 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -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;
}