
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Timing Trunk Transitions
|
287
While tail is following the logfile, call each of the numbers that cause distinctive
rings on your POTS lines. When the POTS interface senses the ring pattern, a log
entry will appear containing Asterisk’s representation of it: a string of digits has three
values separated by commas. Each digit represents a duration of ringing, such that
each ring pattern could have up to three rings of varying length in a 1- or 2-second
timespan. The pattern repeats at regular intervals until the call is answered.
The string representing this pattern is used to supply a value to the
dring argument
in zapata.conf. Repeat this process until you’ve identified the strings needed for each
of the phone numbers associated with your POTS line. Here’s a sample config in
zapata.conf that describes two distinctive ring signals and assigns them different con-
texts in the dial-plan:
usedistinctiveringdetection=yes
dring1=325,95,0
dring2=95,0,0
dringcontext1=TedsCalls
dringcontext2=JakesCalls
channel =>1
Distinctive ring features outside North America can use caller ID sig-
naling instead of ring pattern signaling to indicate which phone num-
ber is being called. Check with your telephone company to see how it
supports distinctive ring.
Routing based on distinctive ring
The Zaptel channel’s ...