From ce984a90fe62caa9b77c166391222aef814b5f3b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 19 Oct 2006 19:09:51 +0000 Subject: [PATCH] present from tony git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3111 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../event_handlers/mod_event_socket/mod_event_socket.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index 03e1bca2be..4ada1d7fc3 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -502,12 +502,16 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t *event switch_core_session_t *session; char *uuid = cmd + 8; - if (uuid) { while(*uuid == ' ') { uuid++; } - strip_cr(uuid); + + if (*uuid == '\r' || *uuid == '\n') { + uuid = NULL; + } else { + strip_cr(uuid); + } } if (!uuid) {