From: Anthony Minessale Date: Thu, 20 Dec 2007 23:25:45 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0-rc1~951 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a23ff8d602b6c578440116a8bff324cc43ee6b49;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6923 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c b/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c index c6fa3ead9a..b71711bf7a 100644 --- a/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c +++ b/src/mod/dialplans/mod_dialplan_asterisk/mod_dialplan_asterisk.c @@ -160,7 +160,7 @@ SWITCH_STANDARD_DIALPLAN(asterisk_dialplan_hunt) caller_profile = switch_channel_get_caller_profile(channel); } - if (caller_profile) { + if (caller_profile && !switch_strlen_zero(caller_profile->destination_number)) { context = caller_profile->context ? caller_profile->context : "default"; } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Obtaining Profile!\n");