提交 5c6c33fb authored 作者: Moises Silva's avatar Moises Silva

mod_oreka: use zstr instead of only checking for null as some caller profile…

mod_oreka: use zstr instead of only checking for null as some caller profile data may be an empty string
上级 3bd13951
......@@ -274,17 +274,17 @@ static int oreka_send_sip_message(oreka_session_t *oreka, oreka_recording_status
caller_id_number = switch_caller_get_field_by_name(caller_profile, "caller_id_number");
caller_id_name = switch_caller_get_field_by_name(caller_profile, "caller_id_name");
if (!caller_id_name) {
if (zstr(caller_id_name)) {
caller_id_name = caller_id_number;
}
callee_id_number = switch_caller_get_field_by_name(caller_profile, "callee_id_number");
if (!callee_id_number) {
if (zstr(callee_id_number)) {
callee_id_number = switch_caller_get_field_by_name(caller_profile, "destination_number");
}
callee_id_name = switch_caller_get_field_by_name(caller_profile, "callee_id_name");
if (!callee_id_name) {
if (zstr(callee_id_name)) {
callee_id_name = callee_id_number;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论