summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fredrickson <creslin@digium.com>2008-07-18 18:50:00 +0000
committerMatthew Fredrickson <creslin@digium.com>2008-07-18 18:50:00 +0000
commit69fee2f71fe977402639769a01aa854a8b69aaf6 (patch)
treef28fdf6e5b714ceb2575e663db49b8539adda7bb
parent86e5bb8b7d04fea50d1fc41fb50544983e0841b0 (diff)
Make sure we break the poll so that messages queued will be sent on the SS7 when using CLI commands for blocking and blocking of CICs and linksets.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_dahdi.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index c4bac93bb..93505cbb4 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -13400,6 +13400,9 @@ static char *handle_ss7_block_cic(struct ast_cli_entry *e, int cmd, struct ast_c
else
ast_cli(a->fd, "CIC %d already locally blocked\n", cic);
+ /* Break poll on the linkset so it sends our messages */
+ pthread_kill(linksets[linkset-1].master, SIGURG);
+
return CLI_SUCCESS;
}
@@ -13439,6 +13442,9 @@ static char *handle_ss7_block_linkset(struct ast_cli_entry *e, int cmd, struct a
ast_mutex_unlock(&linksets[linkset-1].lock);
}
+ /* Break poll on the linkset so it sends our messages */
+ pthread_kill(linksets[linkset-1].master, SIGURG);
+
return CLI_SUCCESS;
}
@@ -13492,6 +13498,10 @@ static char *handle_ss7_unblock_cic(struct ast_cli_entry *e, int cmd, struct ast
if (blocked > 0)
ast_cli(a->fd, "Sent unblocking request for linkset %d on CIC %d\n", linkset, cic);
+
+ /* Break poll on the linkset so it sends our messages */
+ pthread_kill(linksets[linkset-1].master, SIGURG);
+
return CLI_SUCCESS;
}
@@ -13532,6 +13542,9 @@ static char *handle_ss7_unblock_linkset(struct ast_cli_entry *e, int cmd, struct
ast_mutex_unlock(&linksets[linkset-1].lock);
}
+ /* Break poll on the linkset so it sends our messages */
+ pthread_kill(linksets[linkset-1].master, SIGURG);
+
return CLI_SUCCESS;
}