diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-18 22:31:25 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-18 22:31:25 +0000 |
commit | 93d780894810f0460892af0529d9c6f8fe517338 (patch) | |
tree | 07b772f4a93f6e959ccf10510fee364dd143f4f6 /main/enum.c | |
parent | ce857ad4e1f48d742ab491d0170d97d23ec3814f (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@241143 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/enum.c')
-rw-r--r-- | main/enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/enum.c b/main/enum.c index 416bb9072..1d65152df 100644 --- a/main/enum.c +++ b/main/enum.c @@ -851,7 +851,7 @@ int ast_get_enum(struct ast_channel *chan, const char *number, char *dst, int ds ret = ast_search_dns(context, tmp, C_IN, T_NAPTR, enum_callback); time_end = ast_tvnow(); - ast_verb(2, "ast_get_enum() profiling: %s, %s, %d ms\n", + ast_verb(2, "ast_get_enum() profiling: %s, %s, %" PRIi64 " ms\n", (ret == 0) ? "OK" : "FAIL", tmp, ast_tvdiff_ms(time_end, time_start)); if (ret < 0) { |