[Freeswitch-svn] [commit] r4291 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Thu Feb 15 14:58:25 EST 2007


Author: anthm
Date: Thu Feb 15 14:58:25 2007
New Revision: 4291

Modified:
   freeswitch/trunk/src/switch_ivr.c

Log:
update

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Thu Feb 15 14:58:25 2007
@@ -4965,7 +4965,8 @@
 		
 		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 @@
 			}
 
 			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);



More information about the Freeswitch-svn mailing list