fixing bug 1625 - relay status not reported properly in the cli

This commit is contained in:
James Zhang 2011-09-30 11:52:33 -04:00
parent 20abac2794
commit 591cbe7857
1 changed files with 3 additions and 1 deletions

View 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");