]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
freetdm: The remote hangup logic that waits for 3sec for FS to hanup up
authorNenad Corbic <ncorbic@sangoma.com>
Mon, 19 Dec 2011 04:02:59 +0000 (23:02 -0500)
committerNenad Corbic <ncorbic@sangoma.com>
Mon, 19 Dec 2011 04:02:59 +0000 (23:02 -0500)
         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.

libs/freetdm/src/ftdm_io.c

index 731b9f88efb9d95ab1176eccc0b2ee2e76056004..8b179ccf055c0205587fec36d4aff7f9bf0785a3 100644 (file)
@@ -52,7 +52,7 @@
 struct tm *localtime_r(const time_t *clock, struct tm *result);
 #endif
 
-#define FORCE_HANGUP_TIMER 3000
+#define FORCE_HANGUP_TIMER 30000
 #define SPAN_PENDING_CHANS_QUEUE_SIZE 1000
 #define SPAN_PENDING_SIGNALS_QUEUE_SIZE 1000
 #define FTDM_READ_TRACE_INDEX 0
@@ -5455,7 +5455,7 @@ static void execute_safety_hangup(void *data)
        ftdm_channel_lock(fchan);
        fchan->hangup_timer = 0;
        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);
        } else {
                ftdm_log_chan(fchan, FTDM_LOG_CRIT, "Not performing safety hangup, channel state is %s\n", ftdm_channel_state2str(fchan->state));