Detecting CallerID before Ring in Asterisk
Monday, 10 December 745
Inicio | Documentacion | Software | Acerca de

Documentación y Software
Inicio
Documentacion
Software
Acerca de


These patches for Asterisk will detect the CallerID before the first ring.

All this code is based in a modification made by the people of OpenVox of the driver for the analog cards A800P and A400P. I took the A800P and A400P openvox driver and inserted the modifications in the modules wctdm and wctdm24xxp.

These patches have been tested with Zaptel 1.4.10.1 and Asterisk 1.4.19.1, and they may have bugs ;) We are not responsible of any damage or data lost.

Original code: Mark Spencer <markster@digium.com> and Matthew Fredrickson <creslin@digium.com>
CallerID modifications for OpenVox: Miao Lin <miaolin@openvox.com.cn>
Migration from Openvox to Digium: Paco Brufal <pbrufal@servitux.es>
Original Copyright (C) 2001, Linux Support Services, Inc.
Distributed under GNU GPL License.

Asterisk 1.4

How to apply these patches

  1. download the necessary files
  2. uncompress zaptel 1.4.10.1 and asterisk 1.4.19.1
  3. copy wctdm24xxp1.4.10.1c.patch and wctdm24xxp1.4.10.1h.patch to kernel/wctdm24xxp/ inside zaptel source
  4. copy wctdm1.4.10.1c.patch in kernel directory of zaptel
  5. run:
cd zaptel-1.4.10.1
cd kernel
patch -p0 < wctdm1.4.10.1c.patch
cd wctdm24xxp/
patch -p0 < wctdm24xxp1.4.10.1c.patch
patch -p0 < wctdm24xxp1.4.10.1h.patch
  1. copy chan_zap1.4.19.1.patch inside channels/ in the asterisk source code
  2. run:
patch -p0 < chan_zap1.4.19.1.patch
  1. compile and install zaptel 1.4.10.1
  2. compile and install asterisk 1.4.19.1
  3. edit zapata.conf and add this:
usecallerid=yes
callerid=asreceived
cidstart=polarity
cidsignalling=dtmf
  1. load the modules like this:
modprobe wctdm cidbeforering=1 cidbuflen=10
modprobe wctdm24xxp cidbeforering=1 cidbuflen=10

  Last modified: Thu, 22 December 2016  Contenidos © ServiTux Servicios Informáticos