Don't assume valid uuids are exactly 36 characters long
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14393 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
9494aa77c8
commit
bf77c75f43
|
@ -577,7 +577,7 @@ static switch_status_t handle_msg_handlecall(listener_t *listener, erlang_msg *m
|
||||||
ei_x_encode_atom(rbuf, "badarg");
|
ei_x_encode_atom(rbuf, "badarg");
|
||||||
} else {
|
} else {
|
||||||
switch_core_session_t *session;
|
switch_core_session_t *session;
|
||||||
if (!switch_strlen_zero_buf(uuid_str) && SWITCH_UUID_FORMATTED_LENGTH == strlen(uuid_str)) {
|
if (!switch_strlen_zero_buf(uuid_str)) {
|
||||||
if ((session = switch_core_session_locate(uuid_str))) {
|
if ((session = switch_core_session_locate(uuid_str))) {
|
||||||
/* create a new session list element and attach it to this listener */
|
/* create a new session list element and attach it to this listener */
|
||||||
if ((arity==2 && attach_call_to_pid(listener, &msg->from, session)) ||
|
if ((arity==2 && attach_call_to_pid(listener, &msg->from, session)) ||
|
||||||
|
|
Loading…
Reference in New Issue