]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fixing bug 1625 - relay status not reported properly in the cli
authorJames Zhang <jzhang@sangoma.com>
Fri, 30 Sep 2011 15:52:33 +0000 (11:52 -0400)
committerJames Zhang <jzhang@sangoma.com>
Thu, 6 Oct 2011 23:08:00 +0000 (19:08 -0400)
libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c

index ee97e9f3562cd366f5cdac60a1d202fc62527d86..9eb737a7f3dad4c52c13ccc8b7f56b3ff0bde2f2 100644 (file)
@@ -1308,7 +1308,9 @@ static ftdm_status_t handle_show_status(ftdm_stream_handle_t *stream, int span,
                                                        stream->write_function(stream, "r_hw=N|");
                                                }
        
-                                               if (sngss7_test_ckt_blk_flag(ss7_info, FLAG_RELAY_DOWN)) {
+
+                                               if (g_ftdm_sngss7_data.cfg.procId != 1) {
+                                               /* if (sngss7_test_ckt_blk_flag(ss7_info, FLAG_RELAY_DOWN)) { */
                                                        stream->write_function(stream, "relay=Y|");
                                                }else {
                                                        stream->write_function(stream, "relay=N");