Browse Source

fix log

dev
Diego Nakaniwa 2 months ago
parent
commit
00f3f7dbb6
  1. 11
      src/frame/call_frame.c

11
src/frame/call_frame.c

@ -354,12 +354,13 @@ int explore_possible_call_of_bridge_members(const char *bridge_uniqueid){
// A partir da primeira ponta, procurar a outra.
current_channel_connection = get_channel_connection_start(call_channel_1->uniqueid);
int connection_hops = 0;
// Inicio do log.
strncpy(connection_log, "Inicio do rastreio de rota", sizeof(connection_log));
if (!current_channel_connection) { FAIL("Erro na função %s - channel connection não encontrada/registrada channel=%s, Uniqueid=%s", __func__, call_channel_1->name, call_channel_1->uniqueid); }
// Inicio do log.
int connection_hops = 0;
strncpy(connection_log, "Inicio do rastreio de rota\n", sizeof(connection_log));
snprintf(log_line, sizeof(log_line),"Hop:%03d Conexão de %s (%s) para %s (%s)\n", connection_hops, current_channel_connection->connection_start_name, current_channel_connection->connection_start_uniqueid, current_channel_connection->connection_end_name, current_channel_connection->connection_end_uniqueid);
strncat(connection_log, log_line, sizeof(connection_log) - strlen(connection_log) - 1);
while (strstr_n(current_channel_connection->connection_end_name,"Local/")){
current_channel_connection = get_next_channel_connection(current_channel_connection->connection_end_uniqueid, current_channel_connection->connection_start_uniqueid);

Loading…
Cancel
Save