#txt -- file must begin with #txt for the formating tool (i.e. cfgfmt.exe).
#       to treat it as text file.
#
# NOTE: 1. # begin at new line is a comment.
#       2. all parameter/value pairs are optional (but may be needed
#          nevertheless for ATA box to function properly if no
#          prior value is being programmed into the ATA box).
#       3. where IVR Access Code is available, one can use either
#          alphanumeric entry method or numeric entry method for
#          specifying the value of the parameter via IVR alternate
#          Interface. When the value is normally specified as hex
#          digits via provisioning, only decimal entry is available
#          in the IVR alternate interface (numeric entry method),
#          so one must covert hex value to decimal value first
#          before manually entering the value via IVR).
#       4. Parameter values can be one of:
#          a. alphanumeric string
#          b. numeric digit string 
#          c. array of short integer
#          d. IP address (e.g. 192.168.2.170)
#          e. Extended IP address -- IP address with Port (e.g.
#               192.168.2.170.9001)
#          f. boolean (1 or 0)
#          g. bitmap value -- unsigned hex integer (for specifying
#               bits in 32bit integer)
#          h. integer (32 bit integer).


# ============================= UI Parameters ============================
# UIPassword: alphanumeric string (9 characters max) -- control access to
#       web page or IVR interface. If set to non-zero, then every access
#       to the web page and IVR will require the value of UIPassword
#       being entered.
#   IVR Access Code <7387277>
UIPassword:0

# ==================== FirmWare Upgrade Parameters =======================
# ------------------------------------------------------------------------
# upgradecode: special parameter to provide information on
#   how to upgrade firmware code or language image.
#
#   Upgradecode parameter's value should be derived from the following
#   template: 
#
# upgradecode:3,0x501,0x0400,0x0100,tftp_server_ip,69,image_id,image_file_name 
#
#   where the following are site specific fields that need to be modified 
#   accordingly: 
#     1. tftp_server_ip is the TFTP server IP address where the
#        image_file_name can be found; 
#     2. image_id is a unique 32-bit integer value different from upgrade
#        to upgrade. A simple way to derive this 32-bit integer value is to
#        use the build date on the image file name and prepending it with
#        "0x" (e.g. if the image_file_name is ld-v1-00-h323-020508a.zup, then
#        the build date is 020508a, and the image_id is 0x020508a). 
#     3. image_file_name is the firmware upgrade image file name. The
#        image_file_name format is 
#           ld-v{M}-{N}-{procotol}-{yymmdd}{a-f}{ext}
#       - M is major version number 
#       - N is minor version number (always express in 2 digits) 
#       - protocol is one of h323/sip/mgcp/sccp.
#       - yymmdd is 2 digit year, 2 digit month, and 2 digit day 
#       - a-f is the build letter 
#       - yymmdd and a-f together form the build date of the image 
#       - ext is ".zup".
#
# e.g.
#upgradecode:3,0x501,0x0400,0x0100,192.168.2.170,69,0x020508a,ld-v1-00-h323-020508.zup
#
# NOTE: the default values listed below will not trigger any upgrade.
#
upgradecode:0,0x501,0x0400,0x0100,0.0.0.0,69,0,none

# ------------------------------------------------------------------------
# Dhcp: boolean value -- where 1 means do DHCP at reset to obtain
#       IP/route/netmask/DNS/NNTP/TFTP etc, and 0 means don't use
#       DHCP, instead use hard coded parameter values.
#   IVR Access Code <20>
dhcp:1

# ------------------------------------------------------------------------
# staticIp, staticSubNetMask, staticRoute: IP value -- statically assigned
#       ip, subnetmask, and route. This is used if dhcp parameter
#       is not set to 1.
#   IVR Access Code <1> for StaticIp
#   IVR Access Code <2> for StaticRoute
#   IVR Access Code <10> for StaticNetMask
StaticIp:192.168.2.253
StaticRoute:192.168.2.9
StaticNetMask:255.255.255.0

# ------------------------------------------------------------------------
# GkId: alphanumeric string (31 characters max) -- gatekeeper zone id
#       (default is '.').
#   IVR Access Code <91>
GkId:.

# ------------------------------------------------------------------------
# Gk: alphanumeric string (31?joel characters max) -- gatekeeper ip
#   IVR Access Code <5>
#   Format: Null-terminated alpha-numeric string with up to 31 characters.
Gk:0

# ------------------------------------------------------------------------
# AltGk: alphanumeric string (31 characters max) -- Alternate gatekeeper
#   NOTE: ConnectMode bit 3 (mask 0x8) control whether alternate
#       gatekeeper need to register or not.
#   IVR Access Code <6>
AltGk:0

# ------------------------------------------------------------------------
# AltGkTimeOut: integer value -- Alternate gatekeeper timeout value in
#       seconds.
#   IVR Access Code <251>
AltGkTimeOut:0

# ------------------------------------------------------------------------
# GkTimeToLive: integer value -- Gatekeeper Time To Live value.
#   IVR Access Code <250>
GkTimeToLive:300

# ------------------------------------------------------------------------
# GateWay: alphanumeric string (31 characters max) -- gateway ip (if
#       gatekeeper is not used for routing call)
#   IVR Access Code <11>
Gateway:0

# ------------------------------------------------------------------------
# UID: alphanumeric string (31 characters max) -- user id for line
#      (max 31 characters or digits)
#   IVR Access Code <3>
#
#
UID:123

# ------------------------------------------------------------------------
# PWD: alphanumeric string (31 characters max) -- password for line
#   IVR Access Code <4>
#
#
PWD:0

# ------------------------------------------------------------------------
# LoginID: alphanumeric string (19 characters max?joel) -- H.323 Login id 
# for line. This is needed if AuthMethod is set to 1. 
#   IVR Access Code <46> for LoginId?joel
#
#
LoginID:0

# ------------------------------------------------------------------------
# UseLoginID: boolean -- 1 means use Login id specified in LoginId0 and
#       LoginId1 and 0 means not. 
#       * For H323, this field is needed if autm is set to 1
#
#   IVR Access Code <93>
UseLoginID:0

# ------------------------------------------------------------------------
# RxCodec: integer value -- receiving audio codec preference
#       possible values are:
#       0 -- g723.1 (can be selected only if LBRCodec is set to 0)
#       1 -- g711a
#       2 -- g711u
#       3 -- g729a (can be selected only if LBRCodec is set to 3)
#   IVR Access Code <36>
RxCodec:2

# ------------------------------------------------------------------------
# TxCodec: integer value -- transmitting audio codec preference
#       possible values are:
#       0 -- g723 (can be selected only if LBRCodec is set to 0)
#       1 -- g711a
#       2 -- g711u
#       3 -- g729a (can be selected only if LBRCodec is set to 3)
#   IVR Access Code <37>
TxCodec:2

# ------------------------------------------------------------------------
# AudioMode: bitmap value -- Representing Audio operating mode.
# The lower-16 bit for channel 0, and the upper 16-bit for channel 1
#
# bit 0 (mask 0x1): G711SilenceSuppress -- enable silent
#       suppression (VAD/CNG) for G.711/G.729a (1)
# bit 1 (mask 0x2): G711Only -- use g711 only; don't use low-bit-rate
#       codec (0)
# bit 4-5 (mask 0x30): DTMF Method --
#       0=always inband (send and receive, don't send SDP info),
#       1=through negotiation
#       2=always out-of-band 
# bit 6-7 (mask 0xc0): HookflashMethod --
#       0=disable sending hookflash
#       1=through negotiation
#       2=always sending hookflash
#       3=using Q931 user keypad input (Dtmf or hookflash) information (0)
#   IVR Access Code <312>
#
#
AudioMode:0x00150015

# ------------------------------------------------------------------------
# NumTxFrames: integer value -- transmit frames per packet.
#       possible values: integer values 
#   IVR Access Code <35>
NumTxFrames:2

# ------------------------------------------------------------------------
# ConnectMode: bitmap value -- connection mode of the protocol used
#    Possible values are:
#       bit 0 (mask 0x1) -- 0 for slow start and 1 for fast start (h323)
#       bit 1 (mask 0x2) -- 1 use h245 tunneling.
#       bit 3 (mask 0x8) -- 1 means alternate gatekeeper need registration.
#       bit 4 (mask 0x10)-- 1 means CallManager environment, 0 otherwise.
#       bit 5 (mask 0x20)-- 1 means no audio cut through before receiving
#             CONNECT message.
#       bit 6 (mask 0x40)-- 1 means Progress Indicator to be enforced in
#             IP ringback.
#   IVR Access Code <311>
ConnectMode:0x00060400

# ------------------------------------------------------------------------
# TimeZone: integer value -- timezone offset from GMT for time-stamping
#           incoming calls with local time (for caller-id display, etc.).
#   IVR Access Code <302>
#   Possible values are: 0, 1, 2, ..., 24. Local time is generated by
#   the following formula: 
#      Local Time = GMT + TimeZone        , if TimeZone <= 12
#      Local Time = GMT + TimeZone - 25   , if TimeZone > 12
Timezone:17

# ------------------------------------------------------------------------
# AutMethod: bitmap value -- authentication method.
#    Possible values are:
#       bit 0-1 (mask 0x3) -- 0 for no authentication, 1 for
#                 cisco registration level security (H.235), 2 for cisco 
#                 admission level security.
#       bit 2 (mask 0x4) -- prefix password field when registering.
#   IVR Access Code <92>
AutMethod:0

# ------------------------------------------------------------------------
# NTPIP: IP value -- ntp ip address (needed if DHCP server does not
#       provide one)
# AltNTPIP: IP value -- alternate ntp ip address (if redundancy is
#	desired).
#   IVR Access Code <141> for NTPIP
#   IVR Access Code <142> for AltNTPIP
NTPIP:0.0.0.0
AltNTPIP:0.0.0.0

# ------------------------------------------------------------------------
# DNS1IP, DNS2IP: primary and secondary DNS ip (if DHCP server does not
#       provide one).
#   IVR Access Code <916> for DNS1IP
#   IVR Access Code <917> for DNS2IP
DNS1IP:0.0.0.0
DNS2IP:0.0.0.0

# ------------------------------------------------------------------------
# UseTftp: boolean value -- 1 means use tftp for provisioning;
#       0 means none.
#   IVR Access Code <305>
UseTftp:1

# ------------------------------------------------------------------------
# TftpURL: alphanumeric string (31 characters max) -- a URL, i.e. IP or
#       URL of tftp server to use. This is needed if the DHCP will not
#       give the TFTP address. You can optionally include the path prefix
#       to the Tftp file to download. E.g. If the Tftp server IP address
#       is 192.168.2.170 or wwww.cisco.com, and the path to download the
#       Tftp file is in /ata186, then you can specify the URL as
#       192.168.2.170/ata186 or www.cisco.com/ata186.
#   IVR Access Code <905> -- NOTE: from the IVR, you can only enter IP
#       address, from the web server, you can enter actual URL.
TftpURL:0

# ------------------------------------------------------------------------
# CfgInterval: integer value -- representing number of seconds.
#       Interval between each configuration update (in case of using
#       tftp for provisioning, every such interval expiration, the box
#       will do another tftp get of its configuration file
#       at the earliest possible time -- when the box is idle).
#       CfgInterval can be set to some random value to achieve
#       random contact interval from individual ATA box to the tftp
#       server.
#   IVR Access Code <80002>
CfgInterval:3600

# ------------------------------------------------------------------------
# EncryptKey: alphanumeric string (8 charaters max) -- 0 means no
#       encryption was made on the incoming profile from tftp server.
#       Other value means that the profile from tftp server is encrypted
#       with this key using rc4 encryption algorithm. The cfgfmt will
#       automatically encrypt the binary file when this parameter has
#       value specified other than 0.
#   IVR Access Code <320>
EncryptKey:0

# ------------------------------------------------------------------------
# NPrintf: extended IP value -- diagnostic use, debug output print server
#       IP address and port.
#       You need a program called "prserv" running on port number say
#       9001 on a machine (say 192.168.2.170). Then setting this parameter
#       to 192.168.2.170.9001 will cause ATA to output debug trace
#       to that server. Prserv is available from CCO.
#   IVR Access Code <81>
NPrintf:0

# ------------------------------------------------------------------------
# IPDialPlan: integer value -- allow for detection of ip like destination
#       address in dial plan.
#    Possible values:
#       1 -- if two '.' is seen, then assume ip being possibly entered.
#       2 -- if three '.' is seen, then assume ip being possibly entered.
#       all other values are currently undefined.
#   IVR Access Code <310>
IPDialPlan:1

# ------------------------------------------------------------------------
# dial plan: alphanumeric string (199 characters max) -- dial plan rules.
#    NOTE: no syntax check is performed by the actual implementation.
#       It is the responsibility of the provisioner to make sure that
#       the dial_plan is syntatically valid.
#
#    dial_plan -- programmable strings of dial plan that allow
#        one to specify:
#            o special rule -- I{timeout} to control default inter-digit
#	      timeout - specifying this rule also has the side effect
#             of preventing non-matching dial string from being sent out.
#            o optional send character to use (e.g. '#' or '*')
#            o how many digits before auto send
#            o send after timeout at any specified number of digits
#             (time out can be changed as digits are entered).
#        in the following:
#            o . means match any digits
#            o - means more digits can be entered, this (if needed) must
#                appear at the end of the individual rule
#                (i.e. e.g. 1408t5- is legal, but  1408t5-3... is illegal).
#            o ># means terminating key to send is #, and termination
#                can be applied only after matching hits ># (So >*
#               means terminating char is *, i.e. terminating key
#               must follow >)
#            o rules applied in the order of listed (whichever matched
#               completely first will cause trigger the send).
#            o tn means timeout is n seconds (note: n is 0-9 and
#               a-z -- which ranges 0 to 26).
#            o more than one rules are separated by |.
#            o rn means repeat last pattern n times (note: 1. ># or tn are
#              modifier, they are not pattern; 2. n is 0-9 and a-z --
#              which ranges 0 to 26). Use the repeat modifier to specify
#              more rules in less space.
#
#        You can also use the modifier 'S' to sieze the rule matching
#        (i.e. if a rule matches and the modifier 'S' is seen, all other
#        rules after that matching rule will not be used for matching).
#
#        Examples 1:
#            the set of dial plan rules:
#              ".t7>#......t4-|911|1t7>#..........t1-|0t4>#.t7-"
#             or equivalently
#              ".t7>#r6t4-|911|1t7>#.r9t1-|0t4>#.t7-"
#            consists of the following rules:
#              .t7>#......t2- -- at least one digit need to be
#                    entered, after that, time out is 7 seconds
#                    before send, and terminating char # can also
#                    be applied after the first digit is entered,
#                    and after 7 digits are entered, time out
#                    change to 2 seconds. * means further digits
#                    can be entered as long as not terminated by
#                    timeout or #.
#              911 -- send out immediately
#              1t7>#..........t1- -- at least one digit need to be
#                    entered, after that, time out is 7 seconds
#                    before send, and terminating char # can also
#                    be applied after the first digit is entered,
#                    and after 10 digits are entered, time out
#                    change to 1 second. * means further digits can be
#                    entered as long as not terminated by timeout
#                    or #.
#              0t4>#.t7- -- after entering 0, if no other digit is
#                    entered, it will timeout and send in 4 seconds,
#                    otherwise, time out change to 7 seconds after
#                    another key is entered. again # is terminating
#                    digit.
#       Examples 2:
#           the set of dial plan rules:
#               "911|1>#.r9t3.t5-|0t411t9-"
#           if 911 entered, it will be sent out immediately.
#           if 14088713344 is entred, after 3 seconds, it will
#           be sent out but if another digit is entered (say
#           140887133445, the timeout chaned to 5 seconds).
#           if 0 is entered, after 4 seconds, it will be send out.
#           if 011 is entered, the time out changed to 9 seconds.
DialPlan:*St4-|#St4-|911|1>#t8.r9t2-|0>#t811.rat4-|^1t4>#.-

# ------------------------------------------------------------------------
# RingOnOffTime: array of shorts integer value (3 shorts) --  control phone
#       ring characteristic.
#    Recommended US Value: 2,4,25
#    Recommended Swedish Value: 1,5,25
# ------------------------------------------------------------------------
# DialTone:
# BusyTone:
# ReorderTone:
# RingBackTone:
# CallWaitTone:
# AlertTone: array of short integers (9 shorts) -- Play back tones.
#   (NOTE: Play back tone can be specified in terms of frequency, the
#   one provided below are precomputed internal value only known
#   to ATA. If frequency entry format is desired, append "Freq" to
#   each tone name: e.g. RingBackToneFreq. Format RingBackToneFreq is
#   ntone,freq[0],freq[1],level[0],level[1],steady,on-time,off-time,
#
#     - ntone (no. of tones): 1 or 2 (integer only) 
#     - freq[0] (Hz): 0.00 to 4000.00
#     - freq[1] (Hz): 0.00 to 4000.00
#     - level[0] (dBm): 10.00 to -60.00
#     - level[1] (dBm): 10.00 to -60.00
#     - steady: 1 (steady tone, next 2 parameters ignored), 
#        or 0 (on/off according to next 2 parameters) (integer only) 
#     - on-time  (ms): 1 to 0x7FFFFFFF (integer only) 
#     - off-time (ms): 1 to 0x7FFFFFFF (integer only) 
#     - total time to play tone (ms): 0 (forever), or 1 to 0x7FFFFFFF
#       (integer only) 
#
#      For example: US Ring-back tone can be specified as
#
#      RingBackToneFreq:2,440.0,480.0,-10.0,-10.0,0,2000,4000,0 
#
#      which is the same as the precomputed ATA internal format:
#
#      RingBackTone:2,30831,30467,1902,1902,0,16000,32000,0
RingOnOffTime:2,4,25
DialTone:2,31538,30831,3100,3885,1,0,0,1000
BusyTone:2,30467,28959,1191,1513,0,4000,4000,0
ReorderTone:2,30467,28959,1191,1513,0,2000,2000,0
RingBackTone:2,30831,30467,1943,2111,0,16000,32000,0
CallWaitTone:1,30831,0,5493,0,0,2400,2400,4800
AlertTone:1,30467,0,5970,0,0,480,480,1920

# ------------------------------------------------------------------------
# EchoIP: extended IP -- diagnostic use, echo loopback test server. This
#       server is a echo loop back UDP server running at port number 5665.
#       Via IVR, when the user enter IVR code "test9", the user can
#       listen to an echo loop back spoken to the handset.
#   IVR Access Code <904>
EchoIP:192.168.2.9

# ------------------------------------------------------------------------
# MediaPort: integer value -- base port to receive RTP media 
#   IVR Access Code <202>
MediaPort:16384

# ------------------------------------------------------------------------
# TOS: bitmap value -- IP TOS (Type of Service) Bits, determines
#       the precedence and delay of UDP IP packets.
#    Possible values are:
#       Only the lower 8 bits should be set.
#   IVR Access Code <255>
TOS:0xb8

# ------------------------------------------------------------------------
# SigTimer: 32-bit bit fields which contain timeout values to start/stop 
#           the following signalling events:
#
#  CWT PERIOD (Bits 0-7) : 
#    Period between each burst of call-waiting tone
#    Range = 0 to 255 in 0.1 sec; 0 => default 100 (or 10 sec)
#    Default: 100 (0x64 = 10 sec)
#
#  REORDER DELAY (bits 8-13):
#		 Delay in playing reorder (fast busy) tone after far end hangs up
#    Range = 0 to 62 in sec, 63 = never play reorder 
#    Default: 5 (sec)
#
#  RING TIMEOUT (bits 14-19):
#    Timeout in ringing the phone after which ATA rejects the incoming call
#    Range = 0 to 63 in 10 sec, 0=never times out
#    Default: 6 (60 sec)
#
#  Reserved (bits 26-27)
# First Repeat Interval (The period to detect first key repeat)(bits 28 - 29)
# Range: 0 to 3 
# Default: 1 s
# 0 = 1 s          ,  1 = Disable Key Repeat     
# 2 = 2 s          ,  3 = 3 s
#
# Subsequent Repeat Interval (The period to detect key repeat after first time)(bits 30 - 31)
# Range: 0 to 3
# Default: .25s
# 0 = 0.25s        ,  1 = 0.5 s
# 2 = 0.75s        ,  3 = 1 s
#  IVR Access Code <318>
SigTimer:0x01418564

# ------------------------------------------------------------------------
# OpFlags: bitmap value -- turn on/off various operational features.
#   Bit 0 (mask 0x1): if set to 1, always use the internally generated
#                     TFTP config file name.
#   Bit 1 (mask 0x2): if set to 1, do not perform static network router
#                     probing at cold start.
#   Bit 3 (mask 0x8): if set to 1, do not ask for DHCP option 150 in
#                     DHCP discovery message (some DHCP server will not
#                     response if option 150 is requested).
#   Bit 4 (mask 0x10): if set to 1, assume operating under VLAN (the VLAN
#                     id is specified in VLANSetting, see VLANSetting
#                     parameter).
#   Bit 5 (mask 0x20): if set to 1, do not use VLAN IP encapsulation, i.e.
#                     force turning off VLAN IP encapsulation.
#   Bit 6 (mask 0x40): if set to 1, do not perform CDP discovery.
#   Bit 7 (mask 0x80): if set to 1, do not allow web configuration.
#   Bit 8 (mask 0x100): if set to 1, do not allow http://ip/refresh.
#   Bit 9 (mask 0x200): if set to 1, do not allow http://ip/reset.
#
#   IVR Access Code <323>
OpFlags:0x2

# ------------------------------------------------------------------------
# VLANSetting: bitmap value -- this parameter is only applicable to
#               ATA with Skinny Signalling Protocol at this time.
#               The value specify various VLAN Setting:
#   Bit 2-0 (mask 0x7): specify 802.1Q priority for Signalling IP packets.
#   Bit 5-3 (mask 0x38): specify 802.1Q priority for Audio Voice IP packets.
#   Bit 17-6 (mask 0x3ffc0): reserved.
#   Bit 29-18 (mask 0x3ffc0000): user specified 802.1Q VLAN id.
#   Bit 31-30 (mask 0xc0000000): reserved.
#   IVR Access Code <324>
VLANSetting:0x0000002b

# ------------------------------------------------------------------------
# TraceFlags: bitmap value -- diagnostic use, turn on specific trace
#       features.
#
#   Bit 8 (mask 0x100): if set to 1, enable RTP statistics log
#
#   Note: RTP statistics log is in the following format:
#
#   Recv[channel number]: <call duration in seconds> <number of recv packets> 
#      <number of recv octets> <number of late packets> 
#      <number of lost packets> <avg network jitter in 1/8 ms> 
#      <counts in speeding up local clock (adjustment for 10 ms each time)>  
#      <counts in slowing down local clock (adjustment for 10 ms each time)> 
#
#   Tx[channel number]: <call duration in seconds> <number of transmit packets> 
#      <number of transmit octets>
#
#   IVR Access Code <313>
TraceFlags:0x00000000
