-------------------------------------------------------------------------------
In this example means: if there is a incoming call from PSTN into
the port 1, gateway will automatically dial out the number “1001”.
4.2.14 [route]
This command is to set routing table for Gateway.
usr/config$ route
Routing table information and configuration
Usage:
route -add [prefix number][dst number][e164 number]
[min number][max number][hunt number]
route -delete index
route -modify index [prefix number][dst number][e164 number]
[min number][max number][hunt number]
route -ip [dst number][SIP number]
route -fxo [dst number][SIP number]
route -print Routing table information.
prefix The prefix of dialed number.
dst Destination port(FXO:1/IP:2).
e164 Destination e164 number(when destination is FXO).
min Min digits.(0 ~ 255)
max Max digits.(0 ~ 255)
hunt Hunt method for busy forward(NONE:0 / GROUP:1 /
ALL:2)
Example:
route -add prefix 100 dst 1 e164 1001 min 1 max 3 hunt 1
route -ip dst 1 e164 1001
route -fxo dst 1 e164 x
route -modify 1 prefix 100 dst 0 e164 1001 min 1 max 3 hunt 1
route -delete 1
usr/config$
Parameter Usages:
-print
print out all routing table information
-add
add a routing rule in routing table. User can add less than 50 rules.
(
route –add prefix “prefix number” dst “destination port type”
e164 “SIP number of port” min “minimum digits needed” max
65