Extend max call limit duration from 24.8 days to 292+ million years.
authorJeff Peeler <jpeeler@digium.com>
Mon, 18 Jan 2010 22:31:25 +0000 (22:31 +0000)
committerJeff Peeler <jpeeler@digium.com>
Mon, 18 Jan 2010 22:31:25 +0000 (22:31 +0000)
commit568c057c4c03452c86aa70dc4593accee963745f
tree07b772f4a93f6e959ccf10510fee364dd143f4f6
parentbbd290308f67cdaaf3a7cc80b40f09cbe104a112
Extend max call limit duration from 24.8 days to 292+ million years.

If the limit was set past MAX_INT upon answering, the call was immediately
hung up due to overflow from the return of ast_tvdiff_ms (in ast_check_hangup).
The time calculation functions ast_tvdiff_sec and ast_tvdiff_ms have been
changed to return an int64_t to prevent overflow. Also the reporter suggested
adding a message indicating the reason for the call hanging up. Given that the
new limit is so much higher, the message (which would only really be useful in
the overflow scenario) has been made a debug message only.

(closes issue #16006)
Reported by: viraptor

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@241143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c
channels/sig_analog.c
include/asterisk/time.h
main/channel.c
main/enum.c
main/features.c
main/timing.c
pbx/pbx_dundi.c