From ae553234204ca050422a49d0e392764a9be3cac7 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 1 Jul 2008 13:39:40 +0000 Subject: [PATCH] tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8868 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_yaml/mod_yaml.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/languages/mod_yaml/mod_yaml.c b/src/mod/languages/mod_yaml/mod_yaml.c index ce40fd83c8..a8b3d4a8a0 100644 --- a/src/mod/languages/mod_yaml/mod_yaml.c +++ b/src/mod/languages/mod_yaml/mod_yaml.c @@ -330,6 +330,10 @@ static switch_caller_extension_t *parse_dp(FILE *input, switch_core_session_t *s 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 @@ static switch_caller_extension_t *parse_dp(FILE *input, switch_core_session_t *s 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);