aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-18 18:53:54 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-18 18:53:54 +0000
commita9c2e34c1d97680814a52316b60bc12e07dec458 (patch)
tree989a5e1cf3b137247572dc3578126c7c219f5bef /channels/chan_dahdi.c
parent4ebc8645d434248926ba22131f42dc0b3c6c6658 (diff)
Merged revisions 132108 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r132108 | mattf | 2008-07-18 13:50:00 -0500 (Fri, 18 Jul 2008) | 1 line 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: http://svn.digium.com/svn/asterisk/branches/1.6.0@132111 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-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 8e0743e17..d00f7103c 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -13227,6 +13227,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;
}
@@ -13266,6 +13269,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;
}
@@ -13319,6 +13325,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;
}
@@ -13359,6 +13369,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;
}