present from tony
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3111 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
858cc7fa19
commit
ce984a90fe
|
@ -502,13 +502,17 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t *event
|
||||||
switch_core_session_t *session;
|
switch_core_session_t *session;
|
||||||
char *uuid = cmd + 8;
|
char *uuid = cmd + 8;
|
||||||
|
|
||||||
|
|
||||||
if (uuid) {
|
if (uuid) {
|
||||||
while(*uuid == ' ') {
|
while(*uuid == ' ') {
|
||||||
uuid++;
|
uuid++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (*uuid == '\r' || *uuid == '\n') {
|
||||||
|
uuid = NULL;
|
||||||
|
} else {
|
||||||
strip_cr(uuid);
|
strip_cr(uuid);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!uuid) {
|
if (!uuid) {
|
||||||
uuid = switch_event_get_header(event, "session-id");
|
uuid = switch_event_get_header(event, "session-id");
|
||||||
|
|
Loading…
Reference in New Issue