mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 17:22:21 +00:00
freetdm: ss7 - bug fixes for handling the blocking flags. These bugs were caused when the block flags got their own functions and bit flag
This commit is contained in:
parent
022815adc2
commit
0b72c4884f
@ -1207,8 +1207,8 @@ static ftdm_status_t handle_show_status(ftdm_stream_handle_t *stream, int span,
|
|||||||
stream->write_function(stream, "r_hw=N|");
|
stream->write_function(stream, "r_hw=N|");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sngss7_test_ckt_flag(ss7_info, FLAG_RELAY_DOWN)) {
|
if (sngss7_test_ckt_blk_flag(ss7_info, FLAG_RELAY_DOWN)) {
|
||||||
stream->write_function(stream, "relay=Y");
|
stream->write_function(stream, "relay=Y|");
|
||||||
}else {
|
}else {
|
||||||
stream->write_function(stream, "relay=N");
|
stream->write_function(stream, "relay=N");
|
||||||
}
|
}
|
||||||
|
@ -1565,6 +1565,9 @@ ftdm_status_t handle_ubl_req(uint32_t suInstId, uint32_t spInstId, uint32_t circ
|
|||||||
/* throw the unblock flag */
|
/* throw the unblock flag */
|
||||||
sngss7_set_ckt_blk_flag(sngss7_info, FLAG_CKT_MN_UNBLK_RX);
|
sngss7_set_ckt_blk_flag(sngss7_info, FLAG_CKT_MN_UNBLK_RX);
|
||||||
|
|
||||||
|
/* clear the block flag */
|
||||||
|
sngss7_clear_ckt_blk_flag(sngss7_info, FLAG_CKT_MN_BLOCK_RX);
|
||||||
|
|
||||||
/* set the channel to suspended state */
|
/* set the channel to suspended state */
|
||||||
ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_SUSPENDED);
|
ftdm_set_state(ftdmchan, FTDM_CHANNEL_STATE_SUSPENDED);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user