ZAP Caller Id Issues

Some users have reported issues with the display of caller ID data. This post contains recommendations found in lab testing which may increase the probability of success.

Try the following steps one at a time, You may need all of them you may only need a few of them. They are posted by their success rate.

First:
Add the following lines to your /etc/asterisk/zapata.conf
Note: these entries are for US systems adjust the parameters according to your country.

usecallerid=yes
callerid=asreceived
cidsignalling=bell
cidstart=ring
sendcalleridafter=0

If the above doesn’t resolve your issue:

PLEASE NOTE IN TB 2.2 EVERYTHING IS INTEGRATED. YOU SHOULD NOT COMPILE ANY ONE COMPONENT TO COMPILE ASTERISK YOU MUST REMOVE THE PACKAGE AND HAND COMPILE ZAPTEL AND LIBPRI IN CONJUNCTION WITH ASTERISK OR INSTABILITY MAY OCCUR.

Asterisk does a gain bump to compensate for certain cards. Lets eliminate that as our cards do not require it.
Download the appropriate Asterisk sources according to your asterisk version. (replace the x.x.x with your asterisk version)


cd /usr/src
wget ftp://ftp.digium.com/pub/telephony/asterisk/releases/asterisk-x.x.x.tar.gz
tar -xzvf asterisk-x.x.x.tar.gz
cd asterisk-x.x.x/

Now we need to edit a bit of the code and rebuild asterisk.


nano -w channels/chan_zap.c
##press [ctrl+W] search for: 5.0
##You will see: .cid_rxgain = +5.0,
##edit this line to read .cid_rxgain = 0.0,
##press [ctrl+X] type y to save then enter twice.
##now rebuild it
make && make install

The combination of these meathods has led to a 100% success rate in our lab environment however your results may differ. I will add new workarounds as we discover them.

Leave a Reply