Summary:ASTERISK-04200: [patch] For broken for CLI in certain countries [au uk nz sg in za]
Reporter:Thomas (thomas andrews)Labels:
Date Opened:2005-05-17 03:37:20Date Closed:2011-06-07 14:10:17
Versions:Frequency of
Environment:Attachments:( 0) cli-zonedata.patch
Description:CLI does not work for these countries because of the ring cadence. The following error occurs when a phone starts ringing:
 chan_zap.c:3651 zt_handle_event: Didn't finish Caller-ID spill.  Cancelling.
The problem arises because all of these countries have the following ring cadence:
400 200 400 2000
The problem is solved by changing this to:
400 2000 400 200
This does not affect the ring cadence, it just makes it start at a different place in the cycle. The reason why it fixes the bug, is that the 2000ms gap after the first burst of ringing is now long enough to allow the CLI info to be transmitted to the phone.

You might consider this fix to be a hack, and wonder how this problem came about. In my limited understanding of CLI, I believe that CLI information is supposed to be sent *before* real ringing starts, not after the first burst. I think that (for ZA anyway) the CLI process was supposed to initiate with a very short burst of ringing (too short for the phone to respond), followed by the CLI info, followed by the first *real* ring burst. Asterisk is not implemented this way, and therefore has to squeeze the CLI info between the first and second bursts of ringing. By starting the ringing later in the cycle so that the "big" gap happens first, the CLI info can be transmitted.


Disclaimer on file.
Patch relates to CVS 05/03/05
Tested for all of the countries listed above.
Set the following in /etc/zaptel.conf:
(substitute za with any of the listed countries)
rmmod wctdm zaptel && modprobe wctdm debug=1 && ztcfg -vvvvv
Comments:By: Thomas (thomas andrews) 2005-05-17 03:42:07

In order to get the wctdm module to load properly for za, you will also have to apply my patch recorded in http://bugs.digium.com/view.php?id=4293

By: Mark Spencer (markster) 2005-05-19 16:38:22

see "sendcalleridafter" in zapata.conf