Configuration Description
Generic Altigen H.323 SOHO Router Config
Commande Sequence to copy, edit and paste
cli version 3.00
banner "My Altigen Config"
dns-client enabled
dns-client cache 30
dns-relay
webserver port 80 language en
snmp community public ro
sntp-client
sntp-client server primary 192.43.244.18 port 123 version 4
sntp-client server secondary 63.149.208.50 port 123 version 4
sntp-client gmt-offset - 05:00:00
system
ic voice 0
profile service-policy rateVoiceIn
rate-limit 3000 header-length 18 voice-margin 200
queue-limit 8
debug queue statistics detail 3
source traffic-class default
source traffic-class local-voice
priority
profile service-policy rateVoiceOut
rate-limit 256 header-length 18 voice-margin 0
debug queue statistics detail 3
source traffic-class local-voice
priority
set ip tos 8
source traffic-class local-default
priority
source traffic-class default
profile napt NAPT-ETH0
profile ppp default
profile call-progress-tone US_Dialtone
play 0 350 -13 440 -13
profile call-progress-tone US_Alertingtone
play 2000 440 -19 480 -19
no play 4000
profile call-progress-tone US_Busytone
play 500 480 -24 620 -24
no play 500
profile tone-set default
profile tone-set US
map call-progress-tone dial-tone US_Dialtone
map call-progress-tone ringback-tone US_Alertingtone
map call-progress-tone busy-tone US_Busytone
map call-progress-tone release-tone US_Busytone
map call-progress-tone congestion-tone US_Busytone
profile voip default
codec 1 g723-6k3 rx-length 30 tx-length 30
codec 2 g711alaw64k rx-length 20 tx-length 20
codec 3 g711ulaw64k rx-length 20 tx-length 20
dejitter-max-delay 300
profile voip VOIP-IF-Patton
codec 1 g723-6k3 rx-length 30 tx-length 30
profile voip VOIP-IF-incom
codec 1 g723-6k3 rx-length 30 tx-length 30
codec 2 g726-32k rx-length 20 tx-length 20
codec 3 g729 rx-length 20 tx-length 20
codec 4 g711ulaw64k rx-length 20 tx-length 20
codec 5 g711alaw64k rx-length 20 tx-length 20
profile pstn default
profile dhcp-server dhcp_serv
network 192.168.1.0 255.255.255.0
include 1 192.168.1.200 192.168.1.254
lease 60 days
default-router 1 192.168.1.1
domain-name-server 1 192.168.1.1
profile authentication default
method 1 local
method 2 none
context ip router
interface eth0
ipaddress dhcp
mtu 1480
icmp router-discovery
icmp redirect accept
use profile service-policy rateVoiceIn in
use profile service-policy rateVoiceOut out
use profile napt NAPT-ETH0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
interface eth1
ipaddress 192.168.1.1 255.255.255.0
mtu 1480
icmp router-discovery
icmp redirect accept
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
# dyndns
# hostname ‹myname›.dyndns.org wildcard
# authentication ‹myname› ‹mypassword›
# service dynamic
# observe eth0
context ip router
dhcp-server use dhcp_serv
context cs switch
routing-table called-e164 TAB-outgoing
route default dest-table TAB-DIGCOL-IF-Patton
routing-table called-e164 TAB-DIGCOL-IF-incom
route default dest-interface IF-incom
routing-table called-e164 TAB-DIGCOL-IF-terminal
route default dest-interface IF-terminal
routing-table called-e164 TAB-DIGCOL-IF-Patton
route default dest-interface IF-Patton
mapping-table called-e164 to called-e164 FN-RemPrefix
map ..(.%)$ to \1
mapping-table called-e164 to calling-e164 FN-COPY-CNPN-TO-CDPN
map (.%)$ to \1
# Replace ‹Altigen IP›
interface h323 IF-Patton
bind gateway h323
route call dest-interface IF-terminal
remote ‹Altigen IP› 1720
use profile voip VOIP-IF-Patton
use profile tone-set US
interface h323 IF-incom
bind gateway h323
route call dest-interface IF-terminal
use profile voip VOIP-IF-incom
use profile tone-set US
interface fxs IF-terminal
route call dest-table TAB-DIGCOL-IF-Patton
caller-id-presentation mid-ring
use profile tone-set US
interface fxo IF-FXO
no disconnect-signal loop-break
ring-number 5
dial-after timeout 1
no use profile tone-set
service distribution-group IF-Dist
context cs switch
no shutdown
gateway h323 h323
bind interface eth0 router
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface eth0 router
no shutdown
port ethernet 0 1
medium auto
encapsulation ip
bind interface eth1 router
no shutdown
port fxs 0 0
caller-id format bell
use profile fxs us
encapsulation cc-fxs
bind interface IF-terminal switch
no shutdown
port fxs 0 1
encapsulation cc-fxs
no shutdown