MicroNet SP5002 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 0021,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 debugmessage
reboot rebootlocalmachine
flash clean configuration from flash rom
commit commit flash rom data
ifaddr internet address manipulation
time show currenttime
ping test that aremotehostisreachable
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 SpecifySP5002ipaddress.
-mask SetInternetsubnetmask.
-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 Displayphonebook data.
-add Addanrecordtophonebook.
-search Search an record in phonebook.
-delete Delete an record from phonebook.
-insert Insert an record to phonebook in specified position.
-modify Modifyan existrecord.
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.245SignalType,3=Q.931 UserInfo.
-prefixsw User defined local zone prefix switch.(ON:1 / OFF:0)
-prefixdisab Local zone prefix disable character.(one character
from0~9, *, orNONE('-' key))
-usrdefprefix User defined local zone prefix.
Example:
sysconf -plan 4 -bf 0 -callalive 0
sysconf -prefixsw 1 -prefixdisab * -usrdefprefix 333
19
Other manuals for SP5002
1
This manual suits for next models
1
Table of contents
Other MicroNet Gateway manuals

MicroNet
MicroNet SP5008A User manual

MicroNet
MicroNet SP5001/S User manual

MicroNet
MicroNet SP5050/S User manual

MicroNet
MicroNet SP5001 User manual

MicroNet
MicroNet SP5004P User manual

MicroNet
MicroNet SP5001/S User manual

MicroNet
MicroNet SP5002 User manual

MicroNet
MicroNet SP5050 User manual

MicroNet
MicroNet SP5018B User manual

MicroNet
MicroNet SP891 User manual