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

add callee_id name/number to xml_cdr

上级 3f176c2f
...@@ -2000,6 +2000,21 @@ SWITCH_DECLARE(int) switch_ivr_set_xml_profile_data(switch_xml_t xml, switch_cal ...@@ -2000,6 +2000,21 @@ SWITCH_DECLARE(int) switch_ivr_set_xml_profile_data(switch_xml_t xml, switch_cal
} }
switch_xml_set_txt_d(param, caller_profile->caller_id_name); switch_xml_set_txt_d(param, caller_profile->caller_id_name);
if (!(param = switch_xml_add_child_d(xml, "caller_id_number", off++))) {
return -1;
}
switch_xml_set_txt_d(param, caller_profile->caller_id_number);
if (!(param = switch_xml_add_child_d(xml, "callee_id_name", off++))) {
return -1;
}
switch_xml_set_txt_d(param, caller_profile->callee_id_name);
if (!(param = switch_xml_add_child_d(xml, "callee_id_number", off++))) {
return -1;
}
switch_xml_set_txt_d(param, caller_profile->callee_id_number);
if (!(param = switch_xml_add_child_d(xml, "ani", off++))) { if (!(param = switch_xml_add_child_d(xml, "ani", off++))) {
return -1; return -1;
} }
...@@ -2010,10 +2025,6 @@ SWITCH_DECLARE(int) switch_ivr_set_xml_profile_data(switch_xml_t xml, switch_cal ...@@ -2010,10 +2025,6 @@ SWITCH_DECLARE(int) switch_ivr_set_xml_profile_data(switch_xml_t xml, switch_cal
} }
switch_xml_set_txt_d(param, caller_profile->aniii); switch_xml_set_txt_d(param, caller_profile->aniii);
if (!(param = switch_xml_add_child_d(xml, "caller_id_number", off++))) {
return -1;
}
switch_xml_set_txt_d(param, caller_profile->caller_id_number);
if (!(param = switch_xml_add_child_d(xml, "network_addr", off++))) { if (!(param = switch_xml_add_child_d(xml, "network_addr", off++))) {
return -1; return -1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论