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:
- adds a
configurable option to make dial or DTMF pulsing audible to the caller;
it works in conjunction with the Zaptel patch below. This is directly
based on Max
Parke's Asterisk and Zaptel patches, but it is configurable per
channel, and it does not have his SF signalling additions.
- Provides a distinctive secondary dial tone if you use ignorepat in the extensions.conf file, and you're
using the us, xm, xp, or xu tone
zones.
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:
- the ability to force the TDM400P FXS ports to provide ring
current at a
specific frequency, intended for US phones with frequency-selective
ringers
- improved pulse dialing on TDM400P FXS ports
- three additional call progress tone sets, usable on any FXS port
- an ignoreflash keyword
that may be used in your /etc/zaptel.conf
file to cause FXO ports to ignore a remote hookflash
- dial pulse mappings for New Zealand (or Oslo, Norway), and
Sweden
- FXO pulse dial pause fix - "W" in dial strings will pause even
if the FXO is set for pulse dialing
- audible pulsing option; requires
the CNET-modified Asterisk in addition to the modified Zaptel
Quick Install:
Making use of the features:
- Ignore hookflash: If
your TDM400P has FXO ports on channels 1 and 2, and FXS ports on 3
and 4, you could tell the FXOs to ignore a remote hookflash as follows:
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
- Dial pulse mapping: If
you
have rotary-dial phones with NZ/Oslo or Swedish dial arrangements,
you can set FXS channels like so:
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!
- Pause fix for FXO pulse dialing:
Just use a "w" in the dial string, just like you would for DTMF.
- Audible pulsing: If you
want callers to hear your Asterisk box pulsing into your step switch,
you will need to use the modified Asterisk as well as
the modified Zaptel. You will then need to activate audible pulsing on
the channels where you want it in both /etc/zaptel.conf and /etc/asterisk/zapata.conf for this
to work.
/etc/zaptel.conf:
/etc/asterisk/zapata.conf:
; be sure to apply other settings to these channels
hearpulsing=yes
channel => 2
channel => 3
- FXS port ring frequency:
set when loading the wctdm
module. The command line
passed to modprobe would take
the form:
modprobe wctdm opermode=FCC30 fxshonormode=1 boostringer=1
Modes available are:
- FCC17 (16.67 Hz)
- FCC25 (25 Hz)
- FCC30 (30 Hz)
- FCC33 (33.33 Hz)
- FCC40 (40 Hz)
- FCC42 (42 Hz)
- FCC50 (50 Hz)
- FCC54 (54 Hz)
- FCC60 (60 Hz)
- FCC67 (66.66 Hz)
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.
- Extra call progress tone zones: these
require changes in /etc/asterisk/zapata.conf
and /etc/zaptel.conf.
/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.
- Download the
application sources.
- Untar the tarball and change to its directory.
-
make && make install
- Restart Asterisk.
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.
- Download the application
sources.
- Untar the tarball and change to its directory.
- If you're using Asterisk 1.2, edit the Makefile to remove the
-DASTERISK14 define.
make && make install
- Restart Asterisk.
See the VOIP
Wiki article for information on how to use this application.