Skip to content

Commit

Permalink
improve MI dump output to include node allocation and guarded variabl…
Browse files Browse the repository at this point in the history
…e access
  • Loading branch information
spacetourist committed Jan 22, 2025
1 parent 0f8bdc8 commit da0f9ec
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions modules/rtpengine/rtpengine_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,16 @@ void rtpengine_hash_table_print(void)
// update total
rtpengine_hash_table->row_totals[i]--;
} else {
LM_INFO("hash_index=%d callid=%.*s tout=%u\n", i,
entry->callid.len, entry->callid.s,
entry->tout - get_ticks());
LM_INFO("hash_index=%d callid=[%.*s] viabranch=[%.*s] node=[%.*s] tout=%u\n",
i,
entry->callid.len,
entry->callid.s ? entry->callid.s : "(null)",
entry->viabranch.len,
entry->viabranch.s ? entry->viabranch.s : "(null)",
entry->node ? entry->node->rn_url.len : 0,
(entry->node && entry->node->rn_url.s) ? entry->node->rn_url.s : "(null)",
entry->tout - get_ticks()
);
}

last_entry = entry;
Expand Down

0 comments on commit da0f9ec

Please sign in to comment.