Merge pull request #1274 from signalwire/signalwiregatewaydown

[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 21:10:05 +03:00 committed by GitHub
commit 4c04914003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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_set_string(globals.gateway_ip, ip);
switch_set_string(globals.gateway_port, port);
} else if (!strcmp(state, "NOREG")) {
} else if (!strcmp(state, "DOWN")) {
globals.gateway_ip[0] = '\0';
globals.gateway_port[0] = '\0';
}