CNET Hacks

by Russ Price
Last Updated: 2009-06-18

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.33-cnet
NOTE: This version should be used with the zaptel-cnet package below, due to the secondary dial tone addition. If it is compiled against vanilla zaptel, the extra features will not be available.

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

zaptel-cnet tarball

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.
Also, 1.2.19 will work with the OSLEC echo canceller, while 1.2.20 and 1.2.20.1 have caused kernel panics with OSLEC on my system. To use OSLEC, follow the instructions on the OSLEC site.

Latest Version: 1.2.27-cnet (on Downloads page)
Download: zaptel-1.2.27-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/zapel.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.

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.