]> 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>
Fri, 30 Sep 2011 15:52:33 +0000 (11:52 -0400)
libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_cli.c

index 9ff19bac02a69904643f9b454f1ff06d523f3785..00a563962c44afe24cde6cfa511c39a055a9470f 100644 (file)
@@ -1304,7 +1304,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");