mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +00:00
freetdm: The remote hangup logic that waits for 3sec for FS to hanup up
before hanging up the freetdm channel by force seems to have a memory leak. I have increased the timeout to 30sec and made the print statement WARNING level.
This commit is contained in:
parent
485746305a
commit
7e2ef3a55c
@ -52,7 +52,7 @@
|
|||||||
struct tm *localtime_r(const time_t *clock, struct tm *result);
|
struct tm *localtime_r(const time_t *clock, struct tm *result);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define FORCE_HANGUP_TIMER 3000
|
#define FORCE_HANGUP_TIMER 30000
|
||||||
#define SPAN_PENDING_CHANS_QUEUE_SIZE 1000
|
#define SPAN_PENDING_CHANS_QUEUE_SIZE 1000
|
||||||
#define SPAN_PENDING_SIGNALS_QUEUE_SIZE 1000
|
#define SPAN_PENDING_SIGNALS_QUEUE_SIZE 1000
|
||||||
#define FTDM_READ_TRACE_INDEX 0
|
#define FTDM_READ_TRACE_INDEX 0
|
||||||
@ -5455,7 +5455,7 @@ static void execute_safety_hangup(void *data)
|
|||||||
ftdm_channel_lock(fchan);
|
ftdm_channel_lock(fchan);
|
||||||
fchan->hangup_timer = 0;
|
fchan->hangup_timer = 0;
|
||||||
if (fchan->state == FTDM_CHANNEL_STATE_TERMINATING) {
|
if (fchan->state == FTDM_CHANNEL_STATE_TERMINATING) {
|
||||||
ftdm_log_chan(fchan, FTDM_LOG_NOTICE, "Forcing hangup since the user did not confirmed our hangup after %dms\n", FORCE_HANGUP_TIMER);
|
ftdm_log_chan(fchan, FTDM_LOG_WARNING, "Forcing hangup since the user did not confirmed our hangup after %dms\n", FORCE_HANGUP_TIMER);
|
||||||
_ftdm_channel_call_hangup_nl(__FILE__, __FUNCTION__, __LINE__, fchan, NULL);
|
_ftdm_channel_call_hangup_nl(__FILE__, __FUNCTION__, __LINE__, fchan, NULL);
|
||||||
} else {
|
} else {
|
||||||
ftdm_log_chan(fchan, FTDM_LOG_CRIT, "Not performing safety hangup, channel state is %s\n", ftdm_channel_state2str(fchan->state));
|
ftdm_log_chan(fchan, FTDM_LOG_CRIT, "Not performing safety hangup, channel state is %s\n", ftdm_channel_state2str(fchan->state));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user