[svn-commits] mattf: trunk r132108 - /trunk/channels/chan_dahdi.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Jul 18 13:50:00 CDT 2008
Author: mattf
Date: Fri Jul 18 13:50:00 2008
New Revision: 132108
URL: http://svn.digium.com/view/asterisk?view=rev&rev=132108
Log:
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.
Modified:
trunk/channels/chan_dahdi.c
Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=132108&r1=132107&r2=132108
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Fri Jul 18 13:50:00 2008
@@ -13400,6 +13400,9 @@
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 @@
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 @@
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;
}
@@ -13531,6 +13541,9 @@
isup_ubl(linksets[linkset-1].ss7, linksets[linkset-1].pvts[i]->cic, linksets[linkset-1].pvts[i]->dpc);
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;
}
More information about the svn-commits
mailing list