]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 15 Feb 2007 19:58:25 +0000 (19:58 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 15 Feb 2007 19:58:25 +0000 (19:58 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4291 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index 347628c6d85580b4bcddf343ac23ff5c379c0fe4..ed62796e3b512903253887b66ee177f3f5f24e75 100644 (file)
@@ -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);