diff options
| author | Sebastian Kemper <sebastian_ml@gmx.net> | 2023-12-29 09:03:00 +0100 |
|---|---|---|
| committer | Sebastian Kemper <sebastian_ml@gmx.net> | 2023-12-29 09:09:00 +0100 |
| commit | 4e4b2817944ec2c03a78b6ab2e7823a86f713d59 (patch) | |
| tree | 5780beab83ddc58b1d630e9c3ebc59b8da573167 /net/asterisk/patches/180-app_queue_time_t.patch | |
| parent | 6643627656e1b66654bb0ab1a744b50dbec9d2b6 (diff) | |
asterisk: bump to 20.5.2
- Resolves GHSA-98rc-4j27-74hh, GHSA-hxj9-xwr8-w8pq, GHSA-5743-x3p5-3rg7
and GHSA-8857-hfmw-vg8f
- patches refreshed
- patch 180-app_queue_time_t.patch added to fix new warnings, sent
upstream (see [1])
- 180-res_crypto.c-Avoid-using-the-non-portable-ALLPERMS-m.patch and
190-chan_iax2.c-Avoid-crash-with-IAX2-switch-support.patch removed as
they're included in upstream release tar ball.
[1] https://github.com/asterisk/asterisk/pull/516
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Diffstat (limited to 'net/asterisk/patches/180-app_queue_time_t.patch')
| -rw-r--r-- | net/asterisk/patches/180-app_queue_time_t.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/asterisk/patches/180-app_queue_time_t.patch b/net/asterisk/patches/180-app_queue_time_t.patch new file mode 100644 index 0000000..d582a39 --- /dev/null +++ b/net/asterisk/patches/180-app_queue_time_t.patch @@ -0,0 +1,17 @@ +--- a/apps/app_queue.c ++++ b/apps/app_queue.c +@@ -4614,8 +4614,12 @@ static int is_longest_waiting_caller(str + * will be unused until the first caller is picked up. + */ + if (ch->start < caller->start && !ch->pending) { +- ast_debug(1, "Queue %s has a call at position %i that's been waiting longer (%li vs %li)\n", +- q->name, ch->pos, ch->start, caller->start); ++ char time1[AST_TIME_T_LEN]; ++ char time2[AST_TIME_T_LEN]; ++ ast_time_t_to_string(ch->start, time1, sizeof(time1)); ++ ast_time_t_to_string(caller->start, time2, sizeof(time2)); ++ ast_debug(1, "Queue %s has a call at position %i that's been waiting longer (%s vs %s)\n", ++ q->name, ch->pos, time1, time2); + is_longest_waiting = 0; + break; + } |
