Setup guide

This is the so-called "routing table" for voice calls. This table assigns numbers to the voice
ports.The main function of the numbers routing table is to determine:
• to which voice port route the call
• what number to send over to the remote party
Property Description
dst-pattern (integer) - pattern of the telephone number. Symbol '.' designate any digit, symbol '_'
(only as the last one) designate any symbols (i.e. any number of characters can follow, ended with
'#' button)
voice-port (name) - voice port to be used when calling the specified telephone number
prefix (integer) - prefix, which will be used to substitute the known part of the dst-pattern, i.e., the
part containing digits. The dst-pattern argument is used to determine which voice port to be used,
whereas the prefix argument designates the number to dial over the voice port (be sent over to the
remote party). If the remote party is an IP telephony gateway, then the number will be used for
making the call
Notes
More than one entry can be added with exactly the same dst-pattern. If first one of them is already
busy, next one with the same dst-pattern is used. Telephony number entries can be moved, to
select desired order.
Example
Let us consider the following example for the number table:
[admin@Wandy] ip telephony numbers> print
Flags: I - invalid, X - disabled, D - dynamic, R - registered
# DST-PATTERN VOICE-PORT PREFIX
0 12345 XX
1 1111. YY
2 22... ZZ 333
3 ... QQ 55
[admin@Wandy] ip telephony numbers>
We will analyze the Number Received (nr) - number dialed at the telephone, or received over the
line, the Voice Port (vp) - voice port to be used for the call, and the Number to Call (nc) - number to
be called over the Voice Port.
• If nr=55555, it does not match any of the destination patterns, therefore it is rejected
• If nr=123456, it does not match any of the destination patterns, therefore it is rejected
• If nr=1234, it does not match any of the destination patterns (incomplete for record #0),
therefore it is rejected
• If nr=12345, it matches the record #0, therefore number "" is dialed over the voice port XX
• If nr=11111, it matches the record #1, therefore number "1" is dialed over the voice port YY
• If nr=22987, it matches the record #2, therefore number "333987" is dialed over the voice port
ZZ
• If nr=22000, it matches the record #2, therefore number "333000" is dialed over the voice port
ZZ
• If nr=444, it matches the record #3, therefore number "55444" is dialed over the voice port QQ
Let us add a few more records:
[admin@Wandy] ip telephony numbers> print
Flags: I - invalid, X - disabled, D - dynamic, R - registered