tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6923 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
86ab45e132
commit
a23ff8d602
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue