From 8c99670d54802974a7aa07dfad26a29457e5fc88 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 30 Jul 2008 13:14:39 +0000 Subject: [PATCH] add error message to clarify user channel situation from jira issue MODENDP-123 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9207 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_dptools/mod_dptools.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index e877ec5565..8204c58f8b 100644 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -1953,7 +1953,10 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, } } - if (dest) { + if (!dest) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No dial-string available, please check your user directory.\n"); + cause = SWITCH_CAUSE_MANDATORY_IE_MISSING; + } else { const char *var; char *d_dest = NULL; switch_channel_t *channel;