MT#61371 add aliases to CLI/log output

Change-Id: I11bf2dcb3bcf453a986d636706c095d88b4c16ff
pull/1876/head
Richard Fuchs 1 year ago
parent 4c00ab0c83
commit 71b3298935

@ -3835,6 +3835,9 @@ void call_destroy(call_t *c) {
(unsigned int) (rtpe_now.tv_sec - ml->created) % 60,
STR_FMT_M(&ml->viabranch));
for (__auto_type alias = ml->tag_aliases.head; alias; alias = alias->next)
ilog(LOG_DEBUG, "--- Alias: '" STR_FORMAT "'", STR_FMT(alias->data));
for (unsigned int i = 0; i < ml->medias->len; i++)
{
struct call_media *media = ml->medias->pdata[i];

@ -622,6 +622,14 @@ static void cli_list_tag_info(struct cli_writer *cw, struct call_monologue *ml)
tim_result_duration.tv_sec,
tim_result_duration.tv_usec);
if (ml->tag_aliases.length) {
__auto_type alias = ml->tag_aliases.head;
cw->cw_printf(cw, "--- Aliases: '" STR_FORMAT "'", STR_FMT(alias->data));
for (; alias; alias = alias->next)
cw->cw_printf(cw, ", '" STR_FORMAT "'", STR_FMT(alias->data));
cw->cw_printf(cw, "\n");
}
for (int i = 0; i < ml->medias->len; i++)
{
struct call_media * media = ml->medias->pdata[i];

Loading…
Cancel
Save