Skip to content
Snippets Groups Projects
  • Jeff Peeler's avatar
    568c057c
    Extend max call limit duration from 24.8 days to 292+ million years. · 568c057c
    Jeff Peeler authored
    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
    568c057c
    History
    Extend max call limit duration from 24.8 days to 292+ million years.
    Jeff Peeler authored
    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