From: Andrey Volk Date: Tue, 20 Jul 2021 17:39:58 +0000 (+0300) Subject: [mod_signalwire] When SignalWire SIP Gateway is in unregistered state it's DOWN and... X-Git-Tag: v1.10.7^2~312^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1274%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_signalwire] When SignalWire SIP Gateway is in unregistered state it's DOWN and can not be NOREG. --- diff --git a/src/mod/applications/mod_signalwire/mod_signalwire.c b/src/mod/applications/mod_signalwire/mod_signalwire.c index 15e0672984..445de3744b 100644 --- a/src/mod/applications/mod_signalwire/mod_signalwire.c +++ b/src/mod/applications/mod_signalwire/mod_signalwire.c @@ -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'; }