FS-6961: [mod_erlang_event]: Add call UUID to call_hangup message

This commit is contained in:
Brian West 2014-11-05 12:18:47 -06:00
parent 9c1e6037c9
commit 89f3f5e298

View File

@ -693,7 +693,10 @@ static switch_status_t check_attached_sessions(listener_t *listener, int *msgs_s
sp->uuid_str, switch_channel_state_name(sp->channel_state));
ei_x_new_with_version(&ebuf);
ei_x_encode_tuple_header(&ebuf, 2);
ei_x_encode_atom(&ebuf, "call_hangup");
_ei_x_encode_string(&ebuf, sp->uuid_str);
switch_mutex_lock(listener->sock_mutex);
ei_sendto(listener->ec, listener->sockfd, &sp->process, &ebuf);
(*msgs_sent)++;