From: Anthony Minessale Date: Fri, 9 Sep 2011 18:01:04 +0000 (-0500) Subject: add callee_id name/number to xml_cdr X-Git-Tag: v1.2-rc1~51^2~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcd1e14711b56fc5b8a5bb629e5b0bd9779be96e;p=thirdparty%2Ffreeswitch.git add callee_id name/number to xml_cdr --- diff --git a/src/switch_ivr.c b/src/switch_ivr.c index b7f4a38b71..45b582b715 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -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); + 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++))) { return -1; } @@ -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); - 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++))) { return -1;