diff options
| author | Jiri Slachta <jiri@slachta.eu> | 2023-12-29 11:11:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-29 11:11:14 +0100 |
| commit | 0b0af5cc0660d4f0df30a7f4fc9e4006bba13a19 (patch) | |
| tree | 92cd7fde77caa5a59d457f54e16eed3d0e26735f /net/asterisk/patches/180-app_queue_time_t.patch | |
| parent | 3d1eac3ca7300bd1e8186d58053b0ff1a87bde6e (diff) | |
| parent | 4e4b2817944ec2c03a78b6ab2e7823a86f713d59 (diff) | |
asterisk: bump to 20.5.2
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; + } |
