[mod_dptools] explicit ordering eavesdrop all

I propose this change from my implementations for call centers, where a supervisor wants to listen from the last call to first. Without that sometimes eavesdrop doesn't work as expected.
This commit is contained in:
Jovany Leandro G.C 2023-10-07 23:47:14 -03:00 committed by GitHub
parent f1fb05214e
commit 74f6850861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -954,7 +954,7 @@ SWITCH_STANDARD_APP(eavesdrop_function)
switch_cache_db_handle_t *db = NULL;
char *errmsg = NULL;
struct e_data e_data = { {0} };
char *sql = switch_mprintf("select uuid from channels where uuid != '%q'", switch_core_session_get_uuid(session));
char *sql = switch_mprintf("select uuid from channels where uuid != '%q' order by created_epoch desc", switch_core_session_get_uuid(session));
const char *file = NULL;
int x = 0;
char buf[2] = "";