chan_dahdi: CLI "core stop gracefully" has needless delay for PRI and SS7.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 25 Sep 2013 20:38:24 +0000 (20:38 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 25 Sep 2013 20:38:24 +0000 (20:38 +0000)
commit4ed7ab3f2ed8b8b622b1d10d07b3602702a193fb
treec67e70d88801d6d08184f009cb1645328836a51a
parent21fb2fca5ee9bf9d3c41897b15704e10cd395eee
chan_dahdi: CLI "core stop gracefully" has needless delay for PRI and SS7.

The PRI and SS7 link control threads are not stopped correctly when the
chan_dahdi.so module is unloaded.  The link control threads pri_dchannel()
and ss7_linkset() are not awakened from a poll() to cancel the thread.

* Added a SIGURG signal after requesting the thread cancel to break the
link control thread poll() immediately.

For SS7 it was slightly worse, the link poll() timeout would always be
whatever was the last libss7 scheduled event time used.  If no libss7
scheduled event was pending, the thread could run more often than
necessary.

* Set nextms to 60 seconds for the ss7_linkset() poll() if there is no
other libss7 scheduled event.
........

Merged revisions 399818 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 399834 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 399842 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@399844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_dahdi.c
channels/sig_ss7.c