MicroNet SP5002, SP5004 User Manual

User’s Manual
SP5002/SP5004
2/4 Ports IP Telephony Gateway, FXS Interface
Website:
http://www.micronet.info/
1. Introduction .…………………………..3
1.1 Features and specification................................................................................3
1.2 Appearance....................................................................................................... 4
2. Start-up …………………………………6
2.1 System Requirement ........................................................................................6
2.2 IP Environment Setting.................................................................................... 6
2.3 Hyper Terminal Setting....................................................................................7
3. Initialize SP5002/5004 ........................ 9
3.1 Gatekeeper Mode ............................................................................................. 9
(a) Before you go: Configure SP5002/5004 Password ................................ 10
(b) Configure SP5002/5004 IP Address .......................................................10
(c) Gatekeeper Settings ................................................................................ 11
(d) Save SP5002/5004 Configuration & Reboot SP5002/5004................... 11
3.2 Peer-to-Peer Mode ......................................................................................... 12
4. Command lists ................................. 13
4.1 [help] command ................................................................................... 13
4.2 [quit] command....................................................................................13
4.3 [debug] command ................................................................................14
4.4 [reboot] command................................................................................14
4.5 [flash] command ..................................................................................14
4.6 [commit] command..............................................................................15
4.7 [ifaddr] command.................................................................................15
4.8 [time] command ................................................................................... 16
4.9 [ping] command ................................................................................... 16
4.10 [pbook] command ................................................................................17
4.11 [sysconf] command..............................................................................19
4.12 [h323] command ..................................................................................21
4.13 [voice] command .................................................................................23
4.14 [support] command ..............................................................................25
4.15 [tos] command .....................................................................................26
4.16 [phone] command ................................................................................28
4.17 [rom] command....................................................................................30
4.18 [passwd] command ..............................................................................31
1
4.19 [sdial] command...................................................................................32
5. Upgrade SP5002/5004...................... 33
TFTP/FTP server..................................................................................................33
Download Procedure............................................................................................ 33
ANNEX A: TCP/UDP port allocation...34
2
1. Introduction
SP5002/5004 FXS gateway, which based on ITU-T H.323 v3, provides voice and fax
over IP networks. Its simplified operation and configuration features are the most
suitable for residential and SOHO application. Just an IP address and 2 phone sets can
bring you to Voice over IP world.
1.1 Features and specification
Features
- ITU-T H.323 v3 compliance
- One 100Base-T Ethernet port
- Configuration interface: RS-232C and TELNET
- Automatic Gatekeeper Discovery
- Dimensions: 23 cm x 15 cm x 3.8 cm (WxDxH)
- Transmit Voice and T.38 f ax simultaneously
- Provides call progress tone
- E.164 Common Dial Pl an
- DTMF Dialing
- Inband / Outband DTMF
- TFTP/FTP software upgrade
- Remote configuration/ reset
- LED indication for system status
- Support Static IP and DHCP
Audio feature
- Codec -- G.711 a/μlaw, G.723.1 (6.3kbps), G.729A
- VAD (Voice Activity Detection)
- CNG (Comfort Noise Generate)
- G.168/165-compliant adaptive echo cancellation
- Dynamic Jitter Buffer
- Bad Frame Interpolation
- Voice/DTMF Gain Settings
3
1.2 Appearance
Front panel: The LED indication lights provide the relevant system messages of the
SP5002
Power: Light on means SP5002 is power on, and vice versa.
TEL1: Light on means the line is in use (off-hook), and vice versa.
TEL2: Light on means the line is in use (off-hook), and vice versa.
GK : 1. LED light on means SP5002 has successfully registered to Gatekeeper
when it is in Gatekeeper Mode.
2. LED flashes means SP5002 is not registered to Gatekeeper when it is in
Gatekeeper Mode.
3. Or when SP5002 is in downloading mode, LED should be flash as well.
4. LED light off means SP5002 is in Peer-to-Peer Mode.
Ready: 1. Light on and slow flash means SP5002 is in normal mode.
2. Light on and fast flash means SP5002 is in downloading mode.
1: Uplink to the hub/ Router directly.
LINK/ACT: LED light on and flash when Ethernet data is being received.
10/100: LED light on means SP5002 is physically connected to the Ethernet correctly.
2: Downlink to the another device, such as PC.
LINK/ACT: LED light on and flash when Ethernet data is being received.
10/100: LED light on means SP5002 is physically connected to the Ethernet correctly.
Back panel:
1. 1 & 2 10/100 Base-T: RJ-45 socket, complied with ETHERNET 10/100 base-T.
The pin-out is as following:
4
PIN 1, 2: Transmit
PIN 3, 6: Receive
2. CONSOLE: RS232 console port (DB-9pin male connector)
Note: use straight-forward cable to connect to your computer.
PINOUTS
Pin Name Dir Description
2 RXD Receive Data
3 TXD Transmit Data
5 GND System Ground
3. TEL1 – TEL2: RJ-11 connector, FXS interface. To connect analog phone sets or
trunk line of PABX.
4. 12V DC: DC Power supply.
5
2. Start-up
2.1 System Requirement
1. One PC (a) Pentium 100 or above, 64 RAM, Windows 98 or above.
(b) Ethernet card or COM port
2. One standard straightforward RS-232 cable (female connector to SP5002/SP5004
side).
3. Analog telephone sets (up to 2 sets).
4. Software tools (a) Hyper terminal, telnet.
(b) Gatekeeper (optional)
2.2 IP Environment Setting
Users must prepare a valid IP address, complied with IP Network, for SP5002/5004’s
proper operation.
For testing the validation of chosen IP address, use same IP configuration in other PC
or Notebook, and then try to connect to Public Internet (go to well-known website,
receive Internet mail, or ping a specific public IP address). If it works, use the same IP
address and network configuration for SP5002/5004.
6
2.3 Hyper Terminal Setting
A terminal emulator is needed when using RS-232 port to configure SP5002/5004.
There are kinds of terminal emulator software. Here, we use Microsoft
HyperTerminal to depict how to set up terminal emulator:
1. Execute the Hyper Terminal program, and then the following windows will
pop-up on the screen. (START – Program files – Accessories –
Communication – Hyper Terminal)
2. Define a name such as ‘wg3502’ for this new connection.
7
3. After pressing OK button, the next window appear, and then choose COM1/2
Port, which you are going to use.
4. Configure the COM Port Properties as following:
(1) Bits per second: 9600
(2) Flow control: None
Press ‘OK’ button, and then start to configure SP5002/5004.
8
3. Initialize SP5002/5004
3.1 Gatekeeper Mode
(a) Configure SP5002/5004 IP Address
(b) Gatekeeper Mode Settings
(c) Save SP5002/5004 Configuration &
Reboot SP5002/5004
9
Before you go: Configure SP5002/5004 Password
1. Power on SP5002/5004, and you can see the following messages on
Terminal.
---------------------------------------------------------------------------------------------
Attached TCP/IP interface to cpm unit 0
Attaching interface lo0...done
Please wait while system is initializing .......... SAttached TCP/IP interface to cpm unit 0
Attaching interface lo0...done
cmInitialize succeed! Ras port:1720
GK mode selected.
AC4804[0] is ok
successful
Initialize OSS libraries...OK!
VP v1.40 stack open sucessfully.
login:
2. login: when SP5002/5004 is used for the first time, “root” is default login
name without a password.
3. Password setting: type “passwd –set root ****” to define a password for
“root” account. “****”, in above description, stands for contents of the
password. An example, to set root’s password as birdman, is demonstrated
as following:
---------------------------------------------------------------------------------------------
usr/config$ passwd -set root birdman
Setting
login: root
Password: birdman
OK
(b) Configure SP5002/5004 IP Address
Use “ifaddr” command to set up SP5002/5004’s IP address and related network
10
information. An example is demonstrated below:
---------------------------------------------------------------------------------------------------
usr/config$ ifaddr –ip 10.1.1.1 –mask 255.2555.255.0 –gate 10.1.1.254
Note: this is to assign SP5002/5004 an IP address of “10.1.1.1”, subnet mask
“255.255.255.0”, and default IP gateway “10.1.1.254”.
(c) Gatekeeper Settings
1. To assign a gatekeeper address for SP5002/5004, and define its own registered
ID and phone number. For detail, please refer to Chapter 4.19 [h323]
command.
Several important H323 parameters are listed below when setting gatekeeper
mode:
–gk”,-prefix”, ”–line1”, and ”–line2”.
An example is demonstrated below:
----------------------------------------------------------------------------------------------
usr/config$ h323 –gk 10.2.2.2 –prefix 1 –line1 11 –line2 12
Note: This is to set gatekeeper IP address as “10.2.2.2”, prefix as “1”, line 1
number as “11”, and line 2 number as “12”.
Note: For the successful dial plan designed, the line1 & line2 number must
follow the prefix number. For example, if the prefix is set as 002, line1 & line2
can be set as 002
1,0022. It is an important dial plan in gatekeeper mode.
(d) Save SP5002/5004 Configuration & Reboot SP5002/5004
1. Confirming the values, type commit and press enter to save all the changes
you have done.
2. Type reboot and press enter to reboot the SP5002/5004.
3. Wait for SP5002/5004 initializing in gatekeeper mode. It should take around
40 seconds.
11
3.2 Peer-to-Peer Mode
Peer-to-Peer Mode allows users to call other VoIP devices without using a
gatekeeper. When in Peer-To-Peer mode, SP5002/5004 will send SETUP message
directly to the destination IP address once the dial is finished. Users have 2 dialing
methods. One is IP dialing, and the other is PhoneBook dial, which we will describe
later. When using IP address as destination phone number, press “*” as “.” in IP
address expression, and press “#” when dial is finished. When using PhoneBook,
users can dial predefined phone number, and press “#” (optional, to accelerate the dial)
as end of dial. Or, users can use SpeedDial button, which is mapping to user defined
PhoneBook, Button1 to PhoneBookIndex1, Button2 to PhoneBookIndex2,…etc.
To configure Peer-To-Peer Mode in SP5002/5004, follow the steps below:
1. Set Peer-To-Peer Mode, using “h323” command
Command:
-------------------------------------------------------------------------------------------------
usr/config$ h323 –mode 1
Note: mode 1 is for Peer-To-Peer (non-gk) mode, while mode 0 is for GK mode.
2. Configure PhoneBook, using “pbook” command.
Users can refer to chapter 14.10 [pbook] command for more information.
Command:
-------------------------------------------------------------------------------------------------
usr/config$ pbook –add name TEST1 ip 10.1.1.1 e164 10
Note: the command is to add a record onto PhoneBook. After the command
completed, you can type “pbook –print” to see if the input record is correct.
Note: when adding a record to PhoneBook, users do not have to reboot the
machine, and the record will be effective immediately. For phonebook
configuration , please refer to Chapter4.16.
12
4. Command lists
4.1 [help] command
Type help or man or ? to list all the available command.
usr/config$ ?
help help/man/? [command]
quit quit/exit/close
debug show debug message
reboot reboot local machine
flash clean configuration from flash rom
commit commit flash rom data
ifaddr internet address manipulation
time show current time
ping test that a remote host is reachable
pbook Phonebook information and configuration
sysconf System information manipulation
h323 H.323 information manipulation
voice Voice information manipulation
support Special Voice function support manipulation
tos IP Packet ToS (Type of Service)values
phone Setup of call progress tones and ringing (SLIC control)
rom ROM file update
passwd Password setting information and configuration
sdial shorten the dialing number manipulation
usage: help [command]
4.2 [quit] command
Type quit will quit the SP5002/5004 configuration mode. And turn back to login
prompt.
usr/config$ quit
Disconnecting...
login:
Note: It is recommended that type the “quit” command before you leave the
console. If so, SP5002/5004 will ask password again when next user connects to
console port.
13
4.3 [debug] command
Open debug message will show up specific information while SP5002/5004 is in
operation. After executing the debug command, it should execute command
debug -open as well. One example is demonstrated below.
usr/config$ debug -add h323 vp
usr/config$ debug -open
Parameters Usage:
-status Display the enabled debug flags.
-add Add debug flag.
-- h323 : h323 related information
-- vp : voice related information
-delete Remove specified debug flag.
-open Start to show debug messages.
-close Stop showing debug messages.
4.4 [reboot] command
After commit command, type reboot to reload SP5002/5004 in new
configuration. The procedure is as below:
usr/config$ reboot
Attached TCP/IP interface to cpm unit 0
Attaching interface lo0...done
cmInitialize succeed! Ras port:1720
GK mode selected.
AC4804[0] is ok
successful
Initialize OSS libraries...OK!
VP v1.40 stack open sucessfully.
login:
4.5 [flash] command
This command will clean the configuration stored in the flash ROM and reboot
SP5002/5004 in factory default setting.
Parameter Usage:
-clean clean all the user defined value, and reboot SP5002/5004 in
14
factory default mode.
Note: It is recommended that use “flash –clean” after application firmware id
upgraded.
Warning: Once users execute flash –clean, all the configurations of SP5002/5004
will be cleaned. This can be executed only by user whose login name is root.
4.6 [commit] command
Save changes after configuring SP5002/5004.
-------------------------------------------------------------------------------------------------
usr/config$ commit
This may take a few seconds, please wait....
Commit to flash memory ok!
usr/config$
Note: Users should use commit to save modified value, or they will not be
activated after system reboot.
4.7 [ifaddr] command
Configure and display SP5002/5004 network information.
usr/config$ ifaddr
LAN information and configuration
Usage:
ifaddr [-print]|[-dhcp used]|[-sntp mode [server]]
ifaddr [-ip ipaddress] [-mask subnetmask] [-gate defaultgateway]
-print Display LAN information and configuration.
-ip Specify SP5002 ip address.
-mask Set Internet subnet mask.
-gate Specify default gateway ip address
-dhcp Set DHCP client service flag (On/Off).
-sntp Set SNTP server mode and specify IP address.
-timezone Set SNTP server timezone.
-ipsharing Specify usage of an IP sharing device and specify IP address.
Note:
1. Range of ip address setting (0.0.0.0 ~ 255.255.255.255).
2. DHCP client setting value (On=1, Off=0). If DHCP set to 'On',
15
obtain a set of Internet configuration from DHCP server assgined.
3. SNTP mode (0=no update, 1=specify server IP, 2=broadcast mode).
4. Enable this function can make a call through an external IP Sharing device.
Example:
ifaddr -ip 210.59.163.202 -mask 255.255.255.0 -gate 210.59.163.254
ifaddr -dhcp 1
ifaddr -sntp 1 210.59.163.254
ifaddr –ipsharing 1 210.59.163.254
Parameters Usage:
-print print current IP setting and status
-ip assigned IP address for SP5002/5004
-mask internet subnet mask
-gate IP default gateway
-dhcp Dynamic Host Configuration (1 = ON; 0 = OFF)
-sntp Simple Network Time Protocol (1 = ON; 0 = OFF) When SNTP
function is activated, users have to specify a SNTP server as
network time source. An example is demonstrated below:
-timezone set local time zone according to GMT
-ipsharing To specify a global fixed IP address, user can add this IP address
in the command.
usr/config$ ifaddr -ipsharing 1 210.11.22.33
If the IP address is not a fixed one, the dedicated IP address is not necessary in
the command.
usr/config$ ifaddr -ipsharing 1
-------------------------------------------------------------------------------------------------
usr/config$ ifaddr -sntp 1 10.1.1.1
while 10.1.1.1 stands for SNTP server’s IP address.
4.8 [time] command
When SNTP function of SP5002/5004 is enabled and SNTP server can be found
as well, type time command to show current network time.
-------------------------------------------------------------------------------------------------
usr/config$ time
Current time is THU JAN 01 05:29:23 1970
4.9 [ping] command
Use ping to test whether a specific IP is reachable or not.
16
For example: if 192.168.1.2 is not existing while 210.63.15.32 exists. Users will
have the following results:
usr/config$ ping 192.168.1.2
no answer from 192.168.1.2
usr/config$ ping 210.63.15.32
210.63.15.32 is alive
4.10 [pbook] command
Phone Book function allows users to define their own numbers, which mapping
to real IP address. It is effective only in peer-to-peer mode. When adding a
record to Phone Book, users do not have to reboot the machine, and the record
will be effective immediately.
-------------------------------------------------------------------------------------------------
usr/config$ pbook
Phonebook information and configuration
Usage:
pbook [-print [start_record] [end_record]]
pbook [-add [ip ipaddress] [name Alias] [e164 phonenumber]]
pbook [-search [ip ipaddress] [name Alias] [e164 phonenumber]]
pbook [-insert [index] [ip ipaddress] [name Alias] [e164 phonenumber]]
pbook [-delete index]
pbook [-modify [index] [ip ipaddress] [name Alias] [e164 phonenumber]]
-print Display phonebook data.
-add Add an record to phonebook.
-search Search an record in phonebook.
-delete Delete an record from phonebook.
-insert Insert an record to phonebook in specified position.
-modify Modify an exist record.
Note:
If parameter 'end_record' is omited, only record 'start_record' will be display.
If both parameters 'end_record' and 'start_record' are omited, all records will be display.
Range of ip address setting (0.0.0.0 ~ 255.255.255.255).
Range of index setting value (1~100),
Example:
pbook -print 1 10
pbook -print 1
pbook -print
pbook -add name Test ip 210.59.163.202 e164 1001
pbook -insert 3 name Test ip 210.59.163.202 e164 1001
17
pbook -delete 3
pbook -search ip 192.168.4.99
pbook -modify 3 name Test ip 210.59.163.202 e164 1001
Parameter Usages:
-print print out current contents of Phone Book. Users can also add
index number, from 1 to 100, to the parameter to show specific
phone number.
Note: <index number> means the sequence number in phone book. If users do
request a specific index number in phone book, SP5002/5004 will give
each record a automatic sequence number as index.
-add add a new record to phone book. When adding a record, users
have to specify name, ip, and e164 number to complete the
command.
-search search a record in phone book. The searching criteria can be
name, ip, or e164.
-delete delete a specific record. “pbook –delete 3” means delete index 3
record.
-insert add a new record and force to assign a specific index number for
it.
-modify modify an existing record. When using this command, users have
to specify the record’s index number, and then make the change.
PhoneBook Rules:
To meet the requirements of trunk gateway or other applications, PhoneBook
has following characteristics to be noticed.
When the destination side is a terminal, for ex: IP Phone or softphone, e164
number stands for exact destination phone number.
When the destination side is a gateway, for ex: T1/E1 gateway, e164 phone
number stands only for gateway prefix. That is to say, users have to continue to
dial destination number, following the prefix number. A example is as below:
A Æ SP5002/5004
In PhoneBook, there’s a record:
Index Name IP E164
1 B_gateway 192.168.1.2 0
-------------------------------------------------------------------------------------------
B Æ E1 trunk gateway, which connects to PSTN with E1 PRI.
18
If users want to make a call to PSTN number “82265699”, they have to pickup
one of the phone connected to SP5002/5004, and then dial “082265699”. After
receiving the complete dialed number, SP5002/5004 will search for its Phone
Book, find “0” as matched prefix, and then dial out to B’s IP address directly
with destination e.164 (phone number) “82265699”. Pleased be noted that “0”
is eliminated from SP5002/5004 itself.
Note: Because of above characteristics, users have to take care of the number
plan very well to avoid the numbering conflict. If users already defined
“0” for specific trunk gateway, other terminal started with “0” shall be
avoided, or the number will be routed to the trunk gateway defined “0”.
4.11 [sysconf] command
This command displays system information and configurations.
---------------------------------------------------------------------------------------------
usr/config$ sysconf
System information and configuration
Usage:
sysconf [-plan digits] [-callalive flag] [-keypad dtmf]
sysconf -print
-print Display system overall information and configuration.
-plan Number of digits for dial plan.(any positive number.)
-idtime Inter-Digits time.(1~10 sec)
-bf BusyForward.(ON:1 / OFF:0)
-callalive Enable or disable auto-disconnection after 10 seconds
not receiving packets from remote party.
-keypad Select DTMF type: 0=In-band, 1=H.245 Alphanumeric,
2=H.245 SignalType, 3=Q.931 UserInfo.
-prefixsw User defined local zone prefix switch.(ON:1 / OFF:0)
-prefixdisab Local zone prefix disable character.(one character
from 0~9, *, or NONE('-' key))
-usrdefprefix User defined local zone prefix.
Example:
sysconf -plan 4 -bf 0 -callalive 0
sysconf -prefixsw 1 -prefixdisab * -usrdefprefix 333
19
Parameters Usage:
-print print current settings
-plan digits (any positive integer) of dial plan. This police is effective for
calls from PSTN side. When SP5002/5004 collects the number of
pre-defined digits, it will send those digits out automatically. “0”
stands for “any number”, which accepts any digit length. When dial
plan is set to “0”, users can end the dial with “#” to force
SP5002/5004 send out messages directly, or SP5002/5004 will send
out the messages automatically in 3 seconds after dialing stops.
-bf Only working in Gatekeeper mode. If the line1 is engaged as well
as this function is enabled, the line2 will be ringing.
-callalive Call Alive function (1 = ON; 0 = OFF). The function is used to
check if the opposite party is alive when connection is established.
When CallAlive is activated, SP5002/5004 will send H.245
RoundTripDelay message to other party, and wait for response. If
the other party cannot respond the message in 10 seconds,
SP5002/5004 will regard the opposite party as IDLE state and
disconnect the call. When CallAlive is deactivated,
RoundTripDelay message will not be sent during connection.
-keypad DTMF replay type. When value is “0”, SP5002/5004 will transfer
DTMF signal via RTP payload, “1” via H.245 UII Alphanumeric,
“2” via H.245 UII Singal Type, and “3” via Q.931 UserInfo. Users
can adjust the value according to various application.
-prefixsw to switch on/off prefix function.
-prefixdisab Disable the defined prefix after press the selected digit (0,1,~9, *)
-usrdefprefix To define digits as prefix.
-------------------------------------------------------------------------------------------------
Be noted, the above three commands, -prefixsw, -prefixdisab and –usrdefprefix have to work
together. If user would like to dial 9 to replace 123456789, he can firstly switch on the command
(usr/config$ sysconf -prefixsw 1), secondly to define the prefix digits as 12345678 (usr/config$
sysconf –usrdefprefix 12345678). While user would like to dial other numbers, he can dial a
defined digit – [*] to disable the function (usr/config$ sysconf –prefixdisab *), then dial to the
number he wants to dial.
20
4.12 [h323] command
This command is to configure H.323 related parameters.
------------------------------------------------------------------------------------------------
usr/config$ h323
H.323 stack information and configuration
Usage:
h323
h323 [-gk ipaddress] [-line1 number1] [-line2 number2]
[-multicast used] [-rtp port] [-ttl time] [-gkfind port]
[-gkras port] [-ras port] [-ttype terminalType]
[-range [start num1] [end num2]
[-respto t1] [-connto t2]]
h323 -print
-print Display H.323 stack information and configuration.
-gk Gatekeeper ip address. (0.0.0.0 ~ 255.255.255.255)
-prefix prefix number
-line1 #1 Phone number.
-line2 #2 Phone number.
-alias IP side registered H323 ID.
-display String representing display information for reporting
to the called party.
-multi Gatekeeper auto discovery (multicast, On=1, Off=0).
-rtp RTP port number (1024~65532).
-h245 H.245 port number (N/A).
-ttl RAS TTL time (0~3600 second).
-gkfind Gatekeeper finding port (1024~65535).
-gkras Gatekeeper RAS port (1024~65535).
-range Dynamically allocated port range (1500~65535).
-respto Max waiting time for 1st response to a new call (1~200).
-connto Max waiting time for call establishment after receiving 1st
response of a new call (1~20000).
Example:
h323 -gk 210.59.163.171 –prefix 7 -line1 701 -line2 702
Parameters Usage:
-print print current h323 related settings
-mode alternatives for gatekeeper or peer-to-peer mode (0=gatekeeper
mode; 1=peer-to-peer mode). If users select gatekeeper mode, a
extra gatekeeper is needed when SP5002/5004 is in operation.
21
-------------------------------------------------------------------------------------------------
usr/config$ h323 –mode 1 (peer to peer mode)
-gk to assign gatekeeper’s IP address when SP5002/5004 is in
gatekeeper mode.
-prefix assign SP5002/5004 Gateway prefix number, as well as the
registered number on the Gatekeeper.
-line1 assign line 1 number.
-line2 assign line 2 number.
-------------------------------------------------------------------------------------------------
Note: line1 & line2 number must follow the prefix number. For example, if
prefix number is 999, then the line1 & line2’s number are 9991 & 9992.
-alias H.323 ID. If in gatekeeper mode, this h.323 ID must be different
from others who are registering to the same gatekeeper.
-display an addition name for user to recognize in called site.
-multi Switch ON or OFF gatekeeper discovery function (1 = ON; 0 =
OFF). When it’s ON, SP5002/5004 will multicast for gatekeeper if
default gatekeeper is not presented.
-rtp to allocate RTP port range—NOT RECOMMENDED. This may be
used when RTP port range conflicts with Firewall policy.
-h245 to specify h.245 port number (not available)
-ttl to set timer for TTL(Time To Live). SP5002/5004 would send RRQ,
with keepAlive, to gatekeeper periodically according to TTL timer.
-gkfind gatekeeper finding port. Port number, which SP5002/5004 uses it
to discover a gatekeeper. Default value is 1718.
-gkras to set default gatekeeper RAS port number. Default value, 1719, is
well-known port for RAS communication.
-range To allocate port range (1500-65535) SP5002/5004 may use it.
-respto Maximum response time out
-connto Maximum connection time out
22
4.13 [voice] command
The voice command is associated with the audio setting information.
There are four voice codecs supported by SP5002/5004.
------------------------------------------------------------------------------------------------
usr/config$ voice
Voice codec setting information and configuration
Usage:
voice [-send [G723 ms] [G711A ms] [G711U ms] [G729 ms] ]
[-volume [voice level] [input level] [dtmf level]]
[-nscng [G711U used1] [G711A used2] [G723 used3]]
[-echo used] [-mindelay t1] [-maxdelay t2] [-optfactor f]
voice -print
voice -priority [G723] [G711A] [G711U] [G729]
-print Display voice codec information and configuration.
-send Specify sending packet size.
G.723 (30/60 ms)
G.711A (10/20/30/40/50/60 ms)
G.711U (10/20/30/40/50/60 ms)
G.729 (10/20/30/40/50/60 ms)
-priority Priority preference of installed codecs.
G.723
G.711A
G.711U
G.729
-volume Specify the following levels:
voice volume (0~63, default: 28),
input gain (0~63, default: 28),
dtmf volume (0~31, default: 23),
-nscng No sound compression and CNG. (G.723.1 only, On=1, Off=0).
-echo Setting of echo canceller. (On=1, Off=0, per port basis).
-mindelay Setting of jitter buffer min delay. (0~150, default: 100).
-maxdelay Setting of jitter buffer max delay. (0~150, default: 150).
-optfactor Setting of jitter buffer optimization factor. (0~12, default:7).
When the parameter increases , the average voice delay will
increase.When the parameter decreases , the packet error
ratio will increase.
Example:
voice -send g723 60 g711a 60 g711u 60 g729 60
23
voice -volume voice 20 input 32 dtmf 27
voice -echo 1 1
Parameters Usage:
-print print current voice information and configurations.
-send to define packet size for each codec. 20/40/60ms means to send a
voice packet per 20/40/60 milliseconds. The smaller the packet size,
the shorter the delay time. If network is in good condition, smaller
sending packet size is recommended. In this parameter, 20/40/60ms
is applicable to G.711u/a law, and G.729 codec, while 30/60ms is
applicable to G.723.1 codec.
-priority codec priority while negotiating with other h323 device. This
parameter determines the listed sequence in h.245 TCS message.
The codec listed in left side has the highest priority when both
parties determining final codec. User can also select the particular
codec without others.
-------------------------------------------------------------------------------------------------
usr/config$ voice –priority g723 (only select this codec)
usr/config$ voice –priority g723 g729 g711u g711a (select four codecs, and g723 is the first
choice)
-volume There are three adjustable value. voice volume stands for volume,
which can be heard from SP5002/5004 side; input gain stands for
volume, which the opposite party hears. dtmf volume stands for
DTMF volume/level, which sends to its own Line1 or Line2.
-------------------------------------------------------------------------------------------------
Note, level of volume is too high or too low may be result in bad performance while connecting to
each other.
-nscng silence suppression and comfort noise generation setting (1 = ON;
0 = OFF). It is applicable to G.723 codec only. An example is
demonstrated below:
-------------------------------------------------------------------------------------------------
usr/config$ voice -nscng g723 1
-mindelay the minimum jitter buffer size. (Default value= 90 ms)
-maxdelay the minimum jitter buffer size. (Default value= 150 ms)
-optfactor optimized factor. (Default value= 7). An example is demonstrated
24
below:
-------------------------------------------------------------------------------------------------
usr/config$ voice –mindelay 90 –maxdelay 150 -optfacor 7
-echo activate each canceler (1 = ON; 0 = OFF).
Note: be sure to know well the application before you change voice parameters
because this might cause incompatibility.
4.14 [support] command
This command provides some extra functions that might be needed by users.
-------------------------------------------------------------------------------------------------
usr/config$ support
Special Voice function support manipulation
Usage:
support [-t38 enable] [-fstart enable] [-tunnel enable]
support -print
-t38 T.38(FAX) enabled/disabled.
-fstart Fast start enabled/disabled.
-tunnel H245 Tunneling enabled/disabled.
Example:
support -t38 1
support -fstart 0
support -tunnel 1
Parameter Usages:
-print print curren
t setting in support command.
-t38 to switch ON/OFF (1 = ON; 0 = OFF) T.38 fax ability. When
T.38 ability is ON, SP5002/5004 will automatically change codec
(G.723 or G.729a) from audio to T.38 when FAX signal is
detected.
-fstart to switch ON/OFF (1 = ON; 0 = OFF) fstartStart function. Fast
Start function can shorten the connection time if the opposite
party also support fastStart.
-tunnel to switch ON/OFF (1 = ON; 0 = OFF) H.245 tunneling function.
If the function is ON, SP5002/5004 will send H.245 (Call
Control messages) via H.225’s (Call Signal messages) link. The
function is effective only when both side support h245 tunnel.
25
Note: it is not recommended to change the value in this command, only if users
do know well the application. This might cause incompatibility with other
devices.
4.15 [tos] command
TOS service allows users to achieve QoS on IP network.
-------------------------------------------------------------------------------------------------
usr/config$ tos
IP Packet ToS(type of Service)information and configuration
Usage:
tos [-type precedence]
[-delay mode]
[-thruput mode]
[-reliab mode]
tos -print
-type 0 routine.
1 flash override.
2 immediate.
3 internet control.
4 priority.
5 critic.
6 flash.
7 network control.
-delay 0 normal delay.
1 low delay.
-thruput 0 normal throughput.
1 high throughput.
-reliab 0 normal reliability.
1 high reliability.
Example:
tos -type 7 -delay 0 -thruput 0 -reliab 0
Parameter Usages:
-print print current TOS value
-type ranging from 0 to 7, while 7 stands for the highest priority and o
for routine delivery.
-delay 0 or 1, while 1 stands for LOW DELAY, and 0 for normal delay.
26
-thruput 0 or 1, while 1 stands for high throughput, and 0 for normal
condition.
-reliab 0 or 1, while 1 stands for high reliability, and 0 for normal
condition.
Note: Users should be aware that TOS is effective only when network devices
(for ex: router, switch.. etc.) support TOS.
27
4.16 [phone] command
SP5002/5004 progress tone is configurable for users. Default tone value is set
according to U.S. tone specification. Users should adjust the values according to
their own country’s tone specification or users-defined tone specification.
---------------------------------------------------------------------------------------------
usr/config$ phone
Phone ringing , ringback tone , busy tone , dial tone setting and notes
Usage:
phone [-ring [freq ] [ringON ] [ringOFF ]]
[-rbt [freqHi ] [freqLo ] [freqHiLev] [freqLoLev]
[Tone1ON] [Tone1OFF] [Tone2ON ] [Tone2OFF ]]
[-bt [freqHi ] [freqLo ] [freqHiLev] [freqLoLev]
[Tone1ON] [Tone1OFF] [Tone2ON ] [Tone2OFF ]]
[-dt [freqHi ] [freqLo ] [freqHiLev] [freqLoLev]
[Tone1ON] [Tone1OFF] [Tone2ON ] [Tone2OFF ]]
phone [-print [ring]|[rbt]|[bt]|[dt]]
-print Display phone ringing/tone configuration.
ring : ringing
rbt : ringback tone
bt : busy tone
dt : dial tone
-ring ringing configuration set .
-rbt ringback tone configuration set .
-bt busy tone configuration set .
-dt dial tone configuration set .
Note:
ringing frequency : 15 ~ 100 (Unit : Hz)
ringing ring ON/OFF : 0 ~ 8000 (Unit : ms)
tone frequency : 0 ~ 65535 (Unit : Hz)
tone freqLevel : 0 ~ 65535 (Unit : mVrms)
tone Tone ON/OFF : 0 ~ 8000 (Unit : ms)
Example:
phone -print rbt
phone -ring 20 2000 4000
phone -rbt 480 440 125 105 2000 4000 2000 4000
phone -bt 620 480 125 105 500 500 500 500
phone -dt 440 350 96 96 8000 0 8000 0
28
Parameters Usage:
-print print current call progress tone configurations (ring – ring tone,
rbt – ring back tone, bt – busy tone, dt – dial tone). This parameter
should be accompanied with tone type. For example:
------------------------------------------------------------------------------------------------
usr/config$ phone -print rbt
Phone ringback tone paramter
Ringback Tone frequency high : 480
Ringback Tone frequency low : 440
Ringback Tone frequency high level : 155
Ringback Tone frequency low level : 155
Ringback Tone tone1 on : 2000
Ringback Tone tone1 off : 4000
Ringback Tone tone2 on : 2000
Ringback Tone tone2 off : 4000
Note:
For tone simulation, SP5002/5004 adopts dual frequencies as traditional
telephone does. If users want to have their own call progress tone, they can
change the value of tones. High and Low frequency/level/cadence can be
configured respectively.
-ring to set RING tone value.
The played tone type, when SP5002/5004 is receiving a call.
-rbt to set RingBackTone value
The played tone type, when SP5002/5004 receives a Q.931 Alerting
message. In condition that SP5002/5004 is the originate side.
-bt to set BusyTone value.
The played tone type, when destination is busy.
-dt to set DialTone value.
The played tone type, when hook off a phone set of workable
SP5002/5004.
29
4.17 [rom] command
ROM file information and firmware upgrade function.
------------------------------------------------------------------------------------------------
usr/config$ rom
ROM file updating commands
Usage:
rom [-print] [-app] [-dsptest] [dspcore] [dspapp]
-s TFTP/FTP server ip –f filename
rom –print
-print show version of ROM files. (optional)
-app update main application code. (optional)
-boot update main boot code. (optional)
-desptest update dsp testing code. (optional)
-dspcore update DSP kernel code(optional)
-dspapp update dsp application code. (optional)
-s IP address of TFTP/FTP server (mandatory)
-f file name (mandatory)
-method download via TFTP/FTP (TFTP: mode=0, FTP: mode=1)
-ftp specify username and password for FTP
Note:
This command can run select one option in “app”, “dsptest”, dspcore”, and “dspapp”.
Example:
rom –method 1
rom –ftp username password
rom –app –s 192.168.4.101 –f app.bin
Parameter Usages:
-print show versions of all rom files
-app, boot, dsptest, dspcore, dspapp to update main Application
program code, Boot code, DSP
testing code, DSP kernel code, or
DSP application code.
-s to specify TFTP server’s IP address when upgrading ROM files.
-f to specify the target file name, which will replace the old one.
-method to decide using TFTP or FTP as file transfer server. “0” stands for
TFTP, while “1” stands for FTP.
-ftp if users choose FTP in above item, it is necessary to specify
pre-defined username and password when upgrading files.
30
4.18 [passwd] command
For security concern, users have to input the password before entering
configuration mode. “passwd” command is for password setting purpose.
-------------------------------------------------------------------------------------------------
usr/config$ passwd
Password setting information and configuration
Usage:
passwd -set Loginname Password
passwd -clean
Note:
1. Loginname can be only 'root' or 'administrator'
2. passwd -clean will clear all passwd stored in flash,
please use it with care.
Example:
passwd -set root Your_Passwd_Setting
Parameter Usages:
-passwd <login name> <password>
Note: <login name> can be “root” or “administrator” only. “root” and
“administrator” have the same authorization, except3 commands that can
be excuted by “root” only – “passwd –set root”, “rom –boot”, and
“flash –clean”
31
4.19 [sdial] command
SpeedDial information and configuration
------------------------------------------------------------------------------------------------
Usage:
sdial [-add [briefNum mappingNum]]
sdial [-modify [briefNum mappingNum]]
sdial [-delete [briefNum mappingNum]]
sdial [-sw enable]
sdial [-print]
-add Add a record to speedDial table.
-modify Modify a exist record.
-delete Delete a record from speedDial table.
-sw SpeedDial function enable/disable.
-print Display speedDial table.
Note:
1. Use "*" as speedDial trigger.
2. One digit only for briefNumber and maxmum 20 digits for
mappingNumber.
3. No reboot is needed for this feature.(commit neened)
4. The speedDial feature may conflict with UserDefinedPrefix
feature when using the same trigger as "*".Therefore,before
the feature is taking effective,it should check whether the
UseDefinedSwitch is ON or OFF,UserDefinedPrefix is "*" or
not to prevent duplicate definition and system conflict.
Example:
sdial -add 0 00998222000991 1 00998222000992 ...
sdial -modify 0 00998222000999 ...
sdial -delete 0 1 2
Parameter Note:
-- speed dial digit is only from 0,1,~9
-- must dial [*] as trigger, so be careful of another command (usr/config$
sysconf –prefixdiab *). Please do not use it together.
32
5. Upgrade SP5002/5004
SP5002/5004 supports remote download via TFTP to update with new ROM file.
Regarding new version release, please contact local distributor for more information.
TFTP/FTP server
It is necessary to prepare the TFTP/FTP server program on the host PC as
TFTP/FTP server. After TFTP/FTP program set up on one PC and connecting to
network, SP5002/5004 is ready to be updated.
Download Procedure
Associated with Chapter 3.15 [rom] command, type rom to list all available rom
commands. For example, if there is a new application rom file named wt.103,
which you want to upgrade, where TFTP server IP address is 192.168.1.99. The
command should be used as follow.
-------------------------------------------------------------
usr/config$ rom –app –s 192.168.1.99 –f wt.103
33
ANNEX A: TCP/UDP port allocation
While a complete H.323 communication is established, the following ports are
possibly to be used:
TCP port:
Q.931/H.225 Æ dynamic, but mostly 1025 (gatekeeper mode)
1720 (peer to peer mode)
H.245 Æ dynamic, but mostly 1027 (not in use if Fast Start or Tunnel
mode is activated)
UDP port:
RAS Æ adjustable, default = 1024
RTP/ RTCP Æ adjustable, default = 16384 – 16391
Note: the port number allocation is for reference only.
34
Loading...