From: Anthony Minessale Date: Thu, 15 Feb 2007 19:58:25 +0000 (+0000) Subject: update X-Git-Tag: v1.0-beta1~1077 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b09790ba64cd75e7c7186c64848fe042a2ec421;p=thirdparty%2Ffreeswitch.git update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4291 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 347628c6d8..ed62796e3b 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -4965,7 +4965,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_generate_xml_cdr(switch_core_session_ if (caller_profile->caller_extension) { switch_caller_application_t *ap; - + int app_off = 0; + if (!(x_caller_extension = switch_xml_add_child_d(x_callflow, "extension", cf_off++))) { goto error; } @@ -4976,7 +4977,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_generate_xml_cdr(switch_core_session_ } for(ap = caller_profile->caller_extension->applications; ap; ap = ap->next) { - if (!(x_application = switch_xml_add_child_d(x_callflow, "application", cf_off++))) { + if (!(x_application = switch_xml_add_child_d(x_caller_extension, "application", app_off++))) { goto error; } switch_xml_set_attr_d(x_application, "app_name", ap->application_name);