]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Small fix on ESL that cause event_id to be set wrong on headers that had value failure.
authorJoao Mesquita <jmesquita@freeswitch.org>
Wed, 12 Jan 2011 19:24:04 +0000 (16:24 -0300)
committerJoao Mesquita <jmesquita@freeswitch.org>
Wed, 12 Jan 2011 19:24:04 +0000 (16:24 -0300)
libs/esl/src/esl.c

index f5bab62fcb86836dd598e63ae48c6ffd24139a12..078c5de97312a31f2c75682db8115e821ce95be1 100644 (file)
@@ -1094,9 +1094,9 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
                                                esl_log(ESL_LOG_DEBUG, "RECV INNER HEADER [%s] = [%s]\n", hname, hval);
                                                if (!strcasecmp(hname, "event-name")) {
                                                        esl_event_del_header(handle->last_ievent, "event-name");
+                                                       esl_name_event(hval, &handle->last_ievent->event_id);
                                                }
                                                esl_event_add_header_string(handle->last_ievent, ESL_STACK_BOTTOM, hname, hval);
-                                               esl_name_event(hval, &handle->last_ievent->event_id);
                                        }
                                
                                        beg = c + 1;