Browse Source

fix spam de erros no log

dev
Diego Nakaniwa 2 months ago
parent
commit
96dc96eb79
  1. 4
      src/channel/channel_route.c
  2. 2
      src/frame/call_frame.c

4
src/channel/channel_route.c

@ -59,7 +59,7 @@ int parse_event_varset(EVENT *event, s_manager *smanager){
GET_EVENT_ARGUMENT_VALUE("Context", context);
GET_EVENT_ARGUMENT_VALUE("Uniqueid", uniqueid);
GET_EVENT_ARGUMENT_VALUE("Variable", variable);
GET_EVENT_ARGUMENT_VALUE("Value", value);
GET_EVENT_OPTIONAL_ARGUMENT_VALUE("Value", value);
// Variaveis globais não são processadas.
if( !strcmp( uniqueid, "none" ) || !strcmp( channel_name, "none" ) ){ return 1; }
@ -120,7 +120,7 @@ int parse_event_newexten(EVENT *event, s_manager *smanager){
GET_EVENT_ARGUMENT_VALUE("Uniqueid", uniqueid);
GET_EVENT_ARGUMENT_VALUE("Linkedid", linkedid);
GET_EVENT_ARGUMENT_VALUE("Application", application);
GET_EVENT_ARGUMENT_VALUE("AppData", app_data);
GET_EVENT_OPTIONAL_ARGUMENT_VALUE("AppData", app_data);
// Insere o channel route no banco de dados.

2
src/frame/call_frame.c

@ -605,7 +605,7 @@ struct s_list_channel_connections *get_next_channel_connection( const char *next
connection_hop++;
// Log para debug do rastreio de conexão
_LOG("Hop:%d Conexão de %s (%s) para %s (%s)", connection_hop, (*CC)->connection_start_name, (*CC)->connection_start_uniqueid, (*CC)->connection_end_name, (*CC)->connection_end_uniqueid);
//_LOG("Hop:%d Conexão de %s (%s) para %s (%s)", connection_hop, (*CC)->connection_start_name, (*CC)->connection_start_uniqueid, (*CC)->connection_end_name, (*CC)->connection_end_uniqueid);
return *CC;
}

Loading…
Cancel
Save