Merge pull request #185 in FS/freeswitch from ~JCHERUKURI_NECC/freeswitch-fs6794:master to master

* commit '849e90ba733bfe0a2a380fdf26dbff263b3e67b2':
  destroy erlang session elements when the outbound erlang processis stopped/terminated
This commit is contained in:
Brian West 2015-03-03 08:03:14 -06:00
commit 1b35585084
1 changed files with 3 additions and 0 deletions

View File

@ -1508,6 +1508,9 @@ session_elem_t *attach_call_to_spawned_process(listener_t *listener, char *modul
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Timed out when waiting for outbound pid %s %s\n", hash, session_element->uuid_str);
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
/* Destroy erlang session elements when the outbound erlang process gets killed for some unknown reason */
remove_session_elem_from_listener(listener, session_element);
destroy_session_elem(session_element);
return NULL;
}