*** NOTE ***
This patch is now obsolete. Please use the History Buffer patch to provide a workaround. This page is provided for information only.
Overview
With the release of v1.2.0-rc2 and the production release of v1.2.0 a problem was noticed with distinctive ring on TDM cards. This problem manifested itself when using polarity reversal to detect the Caller ID feed. As a result, the ring pattern was always detected as 0,0,0.
Upon investigating I found that there was an additional ring event - ZT_EVENT_RINGBEGIN (event #18). The original ring event was ZT_EVENT_RINGOFFHOOK (event #2). Unfortunately it looked as though the code that handled the new ZT_EVENT_RINGBEGIN was incomplete, so this workaround was developed. Once a fix has been incorporated into the main source code this page will be updated.
Thanks go to Ian Plain of cyber-cottage.co.uk for donating a TDM card. Without it I would not have been able to develop this patch.
These patches are provided under the GNU General Public License (GPL) as is and with no warranty.
Bug report
http://bugs.digium.com/view.php?id=6296
Obtaining the patch
The easiest way is to use wget when appyling the patch, as illustrated below. Download link is :
Applying the patch
First of all you need to obtain the Asterisk source code. You can follow the instructions here. Then, as root, do the following :
cd /usr/src/zaptel
make clean
make install
make config
cd ../asterisk
wget http://www.lusyn.com/asterisk/asterisk_ringbegin.diff
patch -p0 <asterisk_ringbegin.diff
make clean
make install