Merge pull request #1202 in FS/freeswitch from ~PECHEN/freeswitch:feature/FS-10082-full-list-members-by-api to master
* commit 'f411dd49c5f951992345dcd810c5a70d8a235839': FS-10082 [mod_callcenter] full list members by api
This commit is contained in:
commit
b8af27863d
|
@ -3774,7 +3774,11 @@ SWITCH_STANDARD_API(cc_config_api_function)
|
|||
}
|
||||
/* queue list members */
|
||||
} else if (sub_action && !strcasecmp(sub_action, "members")) {
|
||||
sql = switch_mprintf("SELECT *,(%" SWITCH_TIME_T_FMT "-joined_epoch)+base_score+skill_score AS score FROM members WHERE queue = '%q' ORDER BY score DESC;", local_epoch_time_now(NULL), queue_name);
|
||||
if (queue_name){
|
||||
sql = switch_mprintf("SELECT *,(%" SWITCH_TIME_T_FMT "-joined_epoch)+base_score+skill_score AS score FROM members WHERE queue = '%q' ORDER BY score DESC;", local_epoch_time_now(NULL), queue_name);
|
||||
} else {
|
||||
sql = switch_mprintf("SELECT *,(%" SWITCH_TIME_T_FMT "-joined_epoch)+base_score+skill_score AS score FROM members ORDER BY queue, score DESC;", local_epoch_time_now(NULL));
|
||||
}
|
||||
/* queue list tiers */
|
||||
} else if (sub_action && !strcasecmp(sub_action, "tiers")) {
|
||||
sql = switch_mprintf("SELECT * FROM tiers WHERE queue = '%q';", queue_name);
|
||||
|
|
Loading…
Reference in New Issue