]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_signalwire] When SignalWire SIP Gateway is in unregistered state it's DOWN and... 1274/head
authorAndrey Volk <andywolk@gmail.com>
Tue, 20 Jul 2021 17:39:58 +0000 (20:39 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 20 Jul 2021 17:41:08 +0000 (20:41 +0300)
src/mod/applications/mod_signalwire/mod_signalwire.c

index 15e067298439174a9e8b2195fb94dd4362315a07..445de3744b14d041a8b847b722980fa586e9fe9a 100644 (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';
                }