CNET Hacks

by Russ Price
Last Updated: 2008-07-22

This page provides hacks for Asterisk that may be useful to members of CNET, the Telephone Collector's Net.

Downloads Page

Full Tarballs

As of July 25, 2007, full tarballs of the modified source are now available, so you don't need to futz with patch files.

asterisk-cnet tarball

Current Version: 1.2.30-cnet
NOTE: This version should be used with the zaptel-cnet package below. If it is compiled against vanilla zaptel, the hearpulsing and secondary dial tone features will not be present; in other words, it will act as a vanilla Asterisk.

Features:
Download: asterisk-1.2.30-cnet.tar.gz

zaptel-cnet tarball

Current Version: 1.2.26-cnet

NOTE: I do not recommend 1.2.20 or 1.2.20.1 due to echo canceller problems. They are available on the downloads page if you want them.

To use OSLEC, follow the instructions on the OSLEC site for OSLEC 0.1 - but use this patch instead of the the OSLEC patch that was supplied for zaptel 1.2.13.

Download: zaptel-1.2.26-cnet.tar.gz

This is a modified version of Digium's Zaptel device drivers for telephony interfaces; especially, the wctdm driver for the TDM400P analog telephone interface card. It provides the following features:

Quick Install:

Making use of the features:

fxsks=1-2
ignoreflash=1-2
fxoks=3-4
# use my PBX tones instead of standard tones on the FXS ports
loadzone=xp
defaultzone=xp
pulse_nz_oslo=8
pulse_sweden=17-18
Note that dial pulse mapping will work on T1/E1 channels as well as on TDM400P cards. The ignoreflash keyword will also work.

UPDATE 2-27-07: Dial pulse mapping now works for FXO ports as well as FXS. Use the same syntax above.

(3-31-07) WARNING: Pulse dialing on T1 channel bank FXO ports may or may not work for you! I've noticed that the pulses from an FXO on an Adtran 750 channel bank are rather irregular-sounding, and also sound like they have an improper break/make ratio. If you need to pulse dial into a step switch, I suggest using either a TDM400P or X100P card!
/etc/zaptel.conf:
hearpulsing=2-3
/etc/asterisk/zapata.conf:
; be sure to apply other settings to these channels
hearpulsing=yes
channel => 2
channel => 3
modprobe wctdm opermode=FCC30 fxshonormode=1 boostringer=1
Modes available are:
The standard FCC mode is 20 Hz.

NOTE: Changing the opermode parameter affects all FXS ports on the card. This may change in a future release.
/etc/zaptel.conf:

loadzone=xm    # Re-creation of the 1960 Bell Labs experimental ESS in Morris, Illinois
loadzone=xp    # North America (PBX tones)
loadzone=xu    # Old-style UK tones

/etc/asterisk/zapata.conf:
# Use tonezone=100 for xm, 101 for xp, 102 for xu

app_rpsim

This is a little application that may be installed into Asterisk to provide simulated panel revertive pulsing sounds to a caller. It expects a four-digit extension number.
In your extensions.conf file, you could set up an sample extension as follows:
exten => 1234,1,RPSim(${EXTEN})
exten => 1234,n,Progress
exten => 1234,n,Ringing
exten => 1234,n,Wait(10)
exten => 1234,n,Answer
exten => 1234,n,Playback(tt-weasels)
exten => 1234,n,Hangup

Credit goes to Evan Doorbell's Panel Pulsing Lover's Tape, available on the Phone Trips site, which inspired this application and provided the pulse sounds.

app_asr

This is a version of Dirk Tostmann's Automatic Speech Recognition application that has been ported to Asterisk 1.4. The tarball also includes a Makefile. You may use this application on Asterisk 1.2 provided that you modify the Makefile to remove the -DASTERISK14 define.
See the VOIP Wiki article for information on how to use this application.