git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6923 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-12-20 23:25:45 +00:00
parent 86ab45e132
commit a23ff8d602
1 changed files with 1 additions and 1 deletions

View File

@ -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");