提交 a23ff8d6 authored 作者: Anthony Minessale's avatar Anthony Minessale

tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6923 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 86ab45e1
......@@ -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");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论