[Freeswitch-svn] [commit] r8868 - freeswitch/trunk/src/mod/languages/mod_yaml

Freeswitch SVN anthm at freeswitch.org
Tue Jul 1 09:39:41 EDT 2008


Author: anthm
Date: Tue Jul  1 09:39:40 2008
New Revision: 8868

Modified:
   freeswitch/trunk/src/mod/languages/mod_yaml/mod_yaml.c

Log:
tweak

Modified: freeswitch/trunk/src/mod/languages/mod_yaml/mod_yaml.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_yaml/mod_yaml.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_yaml/mod_yaml.c	Tue Jul  1 09:39:40 2008
@@ -330,6 +330,10 @@
 					break;
 				case 3:
 					if (nv == 0) {
+						if (!strcasecmp(scalar_data, "exit")) {
+							yaml_event_delete(&event);
+							goto end;
+						}
 						switch_set_string(name, scalar_data);
 						nv++;
 					} else {
@@ -340,10 +344,6 @@
 							char *substituted = NULL;
 							char *app_data;
 
-							if (!strcasecmp(name, "exit")) {
-								yaml_event_delete(&event);
-								goto end;
-							}
 							
 							if (!extension) {
 								extension = switch_caller_extension_new(session, "YAML", caller_profile->destination_number);



More information about the Freeswitch-svn mailing list