[mod_signalwire] When SignalWire SIP Gateway is in unregistered state it's DOWN and can not be NOREG.

This commit is contained in:
Andrey Volk 2021-07-20 20:39:58 +03:00
parent ba8aff571e
commit 1311a84ee2
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ static void on_sofia_gateway_state(switch_event_t *event)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "SignalWire SIP Gateway registered to %s:%s\n", ip, port); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "SignalWire SIP Gateway registered to %s:%s\n", ip, port);
switch_set_string(globals.gateway_ip, ip); switch_set_string(globals.gateway_ip, ip);
switch_set_string(globals.gateway_port, port); switch_set_string(globals.gateway_port, port);
} else if (!strcmp(state, "NOREG")) { } else if (!strcmp(state, "DOWN")) {
globals.gateway_ip[0] = '\0'; globals.gateway_ip[0] = '\0';
globals.gateway_port[0] = '\0'; globals.gateway_port[0] = '\0';
} }