NEC MG-SIP User manual

Media Gateway – Session
Initiated Protocol
(MG-SIP)
Configuration Guide

MG-SIP Page 2 of 75 5/8/2009
LIABILITY DISCLAIMER
NEC Unified Solutions, Inc. reserves the right to change the
specifications, functions, or features, at any time, without notice.
NEC Unified Solutions, Inc. has prepared this document for use by its
employees and customers. The information contained herein is the
property of NEC Unified Solutions, Inc., and shall not be reproduced
without prior written approval from Unified Solutions, Inc.
All brand names and product names on this document are trademarks or
registered trademarks of their respective companies.
Copyright 2009
NEC Unified Solutions, Inc.

MG-SIP Page 3 of 75 5/8/2009
Table of Contents
1. General Description.................................................................................................................. 6
2. Operating Procedure ................................................................................................................ 7
3. Service Conditions .................................................................................................................... 7
4. Specifications ............................................................................................................................. 9
4.1 Hardware Specifications..................................................................................................................... 9
4.2 Software Specifications .................................................................................................................... 11
5. Interactions.............................................................................................................................. 11
6. PBX Programming for MG-SIP............................................................................................ 12
6.1 ASYD ............................................................................................................................................... 12
6.2 ASYDL............................................................................................................................................. 12
6.3 ALOCL............................................................................................................................................. 12
6.4 ADTM .............................................................................................................................................. 12
6.5 ADPM............................................................................................................................................... 12
6.6 ALIDL .............................................................................................................................................. 12
6.7 ARTD ............................................................................................................................................... 13
6.8 ARTI................................................................................................................................................. 13
6.10 ADPC ............................................................................................................................................. 14
6.11 ACSC.............................................................................................................................................. 14
6.12 ACIC1............................................................................................................................................. 15
6.13 ACIC2............................................................................................................................................. 15
6.14 MBTK............................................................................................................................................. 15
6.15 AMGIL ........................................................................................................................................... 15
6.16 AMGVL ......................................................................................................................................... 16
6.17 ACNAL .......................................................................................................................................... 16
6.18 ACND............................................................................................................................................. 16
6.19 ACDD............................................................................................................................................. 16
7. MG-SIP Startup and Programming...................................................................................... 17
7.1 Maintenance Console Settings.......................................................................................................... 17
7.2 Configuration Setting ....................................................................................................................... 19
7.3 Operation Check ............................................................................................................................... 23
7.4 Diagnosis .......................................................................................................................................... 23
7.5 Maintenance Console Commands .................................................................................................... 23
7.5.1 How to Use the Maintenance Commands ............................................................................................23
7.5.2 How to Read the Maintenance Commands ..........................................................................................25
7.5.3 SET COMMANDS ..............................................................................................................................28
7.5.3.1 SETΔ183RBT .....................................................................................................................28
7.5.3.2 SETΔANOTHER_KEYNUMBER.....................................................................................28
7.5.3.3 SETΔAUTH........................................................................................................................28
7.5.3.4 SETΔAUTH_HEADER......................................................................................................28
7.5.3.5 SETΔCAUSE_TABLE .......................................................................................................29
7.5.3.6 SETΔCC_CONVERT.........................................................................................................29
7.5.3.7 SETΔCDN_PATTERN.......................................................................................................29
7.5.3.8 SETΔCHECK_NUMBER ..................................................................................................30
7.5.3.9 SETΔCPN_PATTERN .......................................................................................................30
7.5.3.10 SETΔDEFAULT...............................................................................................................32
7.5.3.11 SETΔDNSADDRESS.......................................................................................................32
7.5.3.12 SETΔDOMAIN.................................................................................................................33
7.5.3.13 SETΔDRSADDRESS .......................................................................................................33
7.5.3.14 SETΔDRS_QOS ...............................................................................................................33
7.5.3.15 SETΔDTMF_MODE ........................................................................................................34

MG-SIP Page 4 of 75 5/8/2009
7.5.3.16 SETΔH245_BASE_PORT_NO ........................................................................................35
7.5.3.17 SETΔHC_ALARM ...........................................................................................................36
7.5.3.18 SETΔHC_TIMER .............................................................................................................36
7.5.3.19 SETΔINTERFACE ...........................................................................................................36
7.5.3.20 SETΔIPADDRESS ...........................................................................................................36
7.5.3.21 SETΔIPX_ROUTE ...........................................................................................................37
7.5.3.22 SETΔIPX_RTP_PORT_NO .............................................................................................42
7.5.3.23 SETΔKEYNUMBER........................................................................................................42
7.5.3.24 SETΔMULTI_REGIST ....................................................................................................42
7.5.3.25 SETΔMUSICTYPE ..........................................................................................................43
7.5.3.26 SETΔPRACK....................................................................................................................43
7.5.3.27 SETΔPRE_NEGOTIATION_PORT_NO.........................................................................43
7.5.3.28 SETΔPRIVACY_PATTERN............................................................................................43
7.5.3.29 SETΔREGISTRATION_PORT_NO ................................................................................44
7.5.3.30 SETΔREG_INTERVAL ...................................................................................................44
7.5.3.31 SETΔRTP_PATHON........................................................................................................45
7.5.3.32 SETΔRTP_QOS................................................................................................................45
7.5.3.33 SETΔSELF_SIP_DOMAIN..............................................................................................45
7.5.3.34 SETΔSESSION_TIMER ..................................................................................................46
7.5.3.35 SETΔSIGNALING_PORT_NUMBER ............................................................................47
7.5.3.36 SETΔSIP_PORT_NO .......................................................................................................47
7.5.3.37 SETΔSIP_QOS .................................................................................................................47
7.5.3.38 SETΔSIP_REGISTER ......................................................................................................47
7.5.3.39 SETΔSIP_ROUTE............................................................................................................48
7.5.3.40 SETΔSIP_RTP_PORT_NO ..............................................................................................48
7.5.3.41 SETΔSIP_SERVER..........................................................................................................48
7.5.3.42 SETΔSIP_TEL_SERVICE ...............................................................................................49
7.5.3.43 SETΔSLIPRESP ...............................................................................................................50
7.5.3.44 SETΔUPDATE .................................................................................................................50
7.5.3.45 SETΔRESPONSE_TABLE ..............................................................................................50
7.5.3.46 SETΔOUT_OF_AREA_CODE ........................................................................................51
7.5.3.46 MULTISESSION..............................................................................................................51
7.5.4 SHOW COMMANDS..........................................................................................................................51
7.5.4.1 SHOWΔARP.......................................................................................................................51
7.5.4.2 SHOWΔCONFIG ...............................................................................................................52
7.5.4.3 SHOWΔINTERFACE ........................................................................................................57
7.5.4.4 SHOWΔROUTE.................................................................................................................58
7.5.4.5 SHOWΔSTATUS ...............................................................................................................58
7.5.4.6 SHOWΔVERSION .............................................................................................................60
7.5.5 DOWNLOAD COMMAND ................................................................................................................61
7.5.5.1 DOWNLOAD .....................................................................................................................61
7.5.6 PING COMMAND ..............................................................................................................................64
7.5.6.1 PINGΔP1 ............................................................................................................................64
7.5.7 REBOOT COMMAND........................................................................................................................65
7.5.7.1 REBOOT.............................................................................................................................65
7.5.8 EXIT COMMAND...............................................................................................................................66
7.5.8 1 EXIT ...................................................................................................................................66
7.5.9 HELP COMMAND..............................................................................................................................66
7.5.9.1 HELP/?................................................................................................................................66
7.5.10 Error Messages on Maintenance Console ..........................................................................................67
APPENDIX A: Sample Network with PBX/MG-SIP Programming..................................... 68
A-1 Sample Network .............................................................................................................................. 68
A-2 PBX Programming for MG-SIP in Sample Network ...................................................................... 68
A-3 MG-SIP Programming in Sample Network ....................................................................................70
APPENDIX B: MG-SIP Session Initiated Protocol (SIP) Message Support......................... 74

MG-SIP Page 5 of 75 5/8/2009
B-1 Provisional 1xx ................................................................................................................................ 74
B-2 Successful 2xx ................................................................................................................................. 74
B-3 Redirection 3xx................................................................................................................................ 74
B-4 Request Failure 4xx ......................................................................................................................... 74
B-5 Server Failure 5xx ........................................................................................................................... 75
B-6 Global Failures 6xx ......................................................................................................................... 75

MG-SIP Page 6 of 75 5/8/2009
Media Gateway SIP
1. General Description
Media Gateway-Session Initiation Protocol 16-channel type (MG-SIP16) is an interface that enables your
system to build a multi-service and reliable Voice over IP (VoIP) network using Session Initiation
Protocol (SIP) defined by IETF. SIP is an application-layer control protocol that can initiate call setup,
routing, authentication, and transfer feature messages to endpoints.
Up to 16 channels of extensions in an IPX network can communicate with the outside SIP network via an
MG-SIP16 at the same time. As MG-SIP16 complies with small and middle sized remote offices flexibly,
more offices can profit from Peer-to-Peer VoIP services using IP telephony.
The MG-SIP16 supports the SIP standard terminals based on RFC3261. Thereby, the MG-SIP16, which
is controlled by MGC (PHI) of the IPX, provides a full array of call routing capabilities to maximize
network performance in the packet voice network (SIP network). The MG-SIP16 provides the system
with a flexible and cost-efficient network environment without wasting the accumulated assets of the
NEC products.
Note: Connection test with Common Carrier is required.
.

MG-SIP Page 7 of 75 5/8/2009
2. Operating Procedure
None.
3. Service Conditions
1. PHI is essential to perform this feature. This is included in MGC and it controls the MG-SIP16 via
TCP/IP.
2. MG-SIP16 supports 1 to 16 channels.
3. The maximum number of MG-SIP16s accommodated per system (including MC-MG with PFT) and
available channels are as follows, however, note that a maximum of simultaneous speech channels
available per LP, including other ISDN channels, is 460 channels.
Note 1: The maximum number of devices and channels per system is calculated on the
condition that each device accommodated is set to the full capacity of channels. The
number of devices varies depending on the total accommodated channels.
Note 2: When 6144 channels are occupied only by MG-SIP16, other devices cannot be
connected.
4. The number of Internal PHIs is one per system, except for UMG. For UMG, see Service Condition 22.
5. Speech channel is established by Virtual Trunk. Regardless of the registration number, the Virtual
Trunk occupies channels on a 1HW (4-Group) basis. For example, ff a single channel is registered,
the whole HW (32-channel) is occupied exclusively for the one single channel; other-type Virtual
Channel cannot be registered.
6. Virtual Trunk is registered to Virtual PIM.
7. MG-SIP16 makes a connection using SIP Server, which helps to create multi-location connection. SIP
server can use Proxy Server and Registry Server. User Agent (UA) has been registered to SIP Server.
8. Voice, FAX, DTMF (PB Signaling) communication can be established by connections via MG-SIP16.
9. IP Masquerade feature can make a VoIP connection between Private IP Address and Global IP Address.
IP Masquerade feature is to translate UDP and TCP Ports, thereby; it can connect multiple Private IP

MG-SIP Page 8 of 75 5/8/2009
Addresses to single Global IP Address. There is no special equipment for performing IP Masquerade.
However, delay and bandwidth increase might be caused on the connection.
10. Feature Services available in the SIP network are described in Appendix A.
11. When 3rd-party SIP-based terminals (such as SIP Gateway, SIP Terminal, SIP Server) are used in the
SIP network, test these terminals in advance if they are available to use. Note that the terminal cannot
be managed as a station under IPX.
12. Additional services (such as REFER) on the SIP procedure are not provided in this system. See SIP
Message Support section for additional information.
13. Tone and holding tone to SIP network is generated by MG-SIP16. When MGC (PHI) external holding
tone is selected by ASYDL command, the information is provided via MGC.
14. When making a route for MG-SIP16, register the route for each MG-SIP16. A route cannot be shared
by multiple MG-SIP16s.
15. Before using MG-SIP16, it is required to register IP licenses by the AMGIL command. If the number
of IP licenses is not enough to use the SIP terminals, all the terminals cannot register to the system.
16. MG Registration Status can be displayed by using the DIMG command.
17. MGC transfers only Voice RTP Payload. Therefore, Jitter-Buffer Control, Echo Canceller, PAD
Control do not affect the connection. The connection is controlled by end points.
18. PB Receiver becomes invalid while receiving an announcement for AUTOMATED ATTENDANT
[A-82]/REMOTE ACCESS TO SYSTEM [R-2] when Incoming Call terminates to MG-SIP16.
19. MG-SIP16 does not support ring down service.
20. To use VLAN feature of MG-SIP16, connect Switch supporting VLAN feature. MG-SIP itself does
not support VLAN.
21. To use FAX communication feature of MG-SIP16, specify the FAX settings by ARTI/ARTIN
command.
The FAX communication has constraints as follows:
• FAX communication can be established only when G711 is assigned to payload for Voice and FAX.
• FAX communication can be established only when Payload Sizes for Voice and FAX are the same.
• To establish FAX communication with SIP network via MG-SIP16, be sure to assign G711 as
Payload
Type for all the FAX accommodated in the system.
22. The following provides the port number to be used in this system. If the firewall is applied to in your
network, unblock the following ports.

MG-SIP Page 9 of 75 5/8/2009
23. Alternate routing to PSTN line can be activated in the case of the following connection failure on IP
network.
• Ether cable failure on MG-SIP16’s LAN side (IPX network) connector.
• Network failure between IPX and MG-SIP16.
• MG-SIP16 failure (such as power-off, etc.) ÆAlternate routing is activated after health check
timeout detection.
• Ether cable failure on MG-SIP16’s WAN side (SIP network) connector ÆAlternate routing is
activated after health check timeout detection.
• Network failure between MG-SIP16 and carrier’s SIP server ÆAlternate routing is activated after
originating connection timeout (6 seconds).
• MG-SIP16 receives error response from carrier’s SIP server ÆAlternate routing is activated after
receiving error response (400, 408, 500, and 503).
• All the available channels are busy or in make-busy state.
4. Specifications
4.1 Hardware Specifications

MG-SIP Page 10 of 75 5/8/2009

MG-SIP Page 11 of 75 5/8/2009
4.2 Software Specifications
5. Interactions
None.

MG-SIP Page 12 of 75 5/8/2009
6. PBX Programming for MG-SIP
Note: Be sure to assign the data in the following order.
6.1 ASYD - Assign System Data 1,
Index64, Bit7 = 1 (holding tone sending)
Index186, Bit6 = 1 (ISDN)
Index187=00
Index220, Bit6=0 (ISDN is enabled)
6.2 ASYDL - Assign the following:
System Data 1 Index 810 Bit2 = 0/1 [Internal Holding Tone (IP terminals)/External Holding Tone
(EMA and PLO)]
System Data 1 Index 880 Bit1 = 1 (Internal PHI is enabled)
Note: If External music (2) is selected, refer to Music On Hold [M-7].
6.3 ALOCL - Assign ToS settings as follows:
Network Address: Specify the Network Address (assign 0.0.0.0 when LOC-ID=0).
Mask Bit: Specify the Mask Bit (assign32 when LOC-ID=0).
LOC-ID = 0
Setting of Type of Service (Signaling Packet): Specify the Quality of Service (IP Precedence/
Diffserv).
- When IP Precedence is selected
Specify its priority [0-7] and the type (LOW DELAY/THROUGH PUT/RELIABILITY/MIN COST).
- When Diffserv is selected
Specify the DiffServ Code Point [0-63].
Note: LOC-ID=0 is essential to be assigned, however, assign other network’s LOC-ID
according to the configuration.
Note: When any change has been made, it is necessary to initialize the MGC (PHI) by using
the ADPM command.
Note: When the data change is applied to the already-operating equipment (such as PH,
IPPAD, and DtermIP) please take the following:
- Reset the appropriate PH or IPPAD.
- Re-register the DtermIP
6.4 ADTM - Assign port numbers if necessary [default value = 64000].
Initialize the PHI if the port number has been modified. (Options)
6.5 ADPM - Initialize the MGC (PHI).
PH TYPE = Internal PHI (BRI)
Menu = Initialize
6.6 ALIDL - Specify LAN the MGC accommodated location.
LENS: Specify the Line Equipment Number (even number)
TYPE = Internal PHI
REGMAX: Specify the registration capacity.

MG-SIP Page 13 of 75 5/8/2009
Note: When the total number of channels using PHI exceeds 256, increase the value of
REGMAX.
6.7 ARTD – Specify the route class data on Virtual Speech Channel as follows. It is not necessary to
register attributes for the Virtual Signaling Channel.
CDN2 (ONSG) = 2 (PB, 60 milliseconds Interruption, CCIS, or ISDN)
CDN4 (INSG) = 2 (PB, 60 milliseconds Interruption, or CCIS)
CDN5 (TF) = 3 [Bothway Trunk (BWT)]
CDN6 (TCL) = 1 (DDD Line/Tie Line)
CDN7 (L/T) = 1 (Trunk)
CDN8 (RLP) = 2 [First Party Release (either station or trunk side)]
CDN15 (LSG) = 12 [Speech Line (for CCIS or B-Channel of ISDN)]
CDN28 (ANS) = 1 (Answer signal is provided)
CDN30 (PAD) = 7 [PAD OFF(0db)]
CDN31 (OGRL) = 1 (224 milliseconds)
CDN32 (ICRL) = 1 (224 milliseconds)
CDN34 (GUARD) = 1 (512 milliseconds)
CDN45 (A/D) = 0 (Analog)
CDN49 (TRKS) = 0 (Select from the trunk which becomes idle first)
CDN50 (DPLY) = 1 (Number Display of Dterm between offices is given)
CDN60 (TC/EC) = 1 (Echo Canceller)
CDN65 (INT) = 10 [Q-Sig, (ETS 300 172)/IS-11572]
CDN66 (DOC) = 1-15 (DID Addressing number)
Assign the CDN111 (ADVPRA) = 1 (ISDN PRI Failure Routing Service) to Dummy Routes.
6.8 ARTI - Specify the application data for trunk.
CDN47: INTD = 2 (H.323/SIP)
CDN68: VIR = 2 (MG connection)
CDN77: RA_RT = 0/1 (Virtual Register is used/Register card is used)
6.9 ATRK - Specify trunk data on Virtual Speech Channel and Virtual Signaling Channel.
RT: Specify Route Number [1-255]
TK: Specify Trunk Number [1-255]
LENS: Specify Accommodated Location (Six digits)
The following is an example of 16-channel operation.

MG-SIP Page 14 of 75 5/8/2009
6.10 ADPC - Register Point Code on Virtual Speech Channel and Virtual Signaling Channel.
RT: Specify a Route Number [1-255]
PC: Specify unused Point Code, not Point Code used in SS7 [1-16383]
6.11 ACSC - Assign the top number of 32-channel LENS.
CSCG: Specify the CSC Group Number
GROUP: Specify the CIC Group Number
CCH: Specify the top LENS of a unit.

MG-SIP Page 15 of 75 5/8/2009
6.12 ACIC1 - Specify the accommodated location of Virtual Control Channel on Point Code as follows:
PC: Enter Point Code specified by ADPC
CSCG: Enter CSC group specified by ACSC
6.13 ACIC2 - Specify the accommodated location of Virtual Control Channel on Point Code as follows:
PC: Enter Point Code specified by ADPC
CIC: Enter CSC numbers in sequential number
LENS: Enter accommodated locations of Speech Channel and B-Channel
6.14 MBTK - Cancel Make Busy of Virtual Speech Channel.
RT: Enter Route Number
TK: Enter Trunk Number
MB = 0 (Make-Busy is cancelled.)
6.15 AMGIL - Specify information regarding to MG-SIP16 as follows:
MG-ID: Enter MAC Address (6 bytes)
FUNCTION = Setting
KIND = SIP-MG
LINE = 0 (fixed)
CH = 0 (fixed)
LENS: Enter Basic Accommodated Location (the first number of HW)
Retry = 0
Service Type: Specify QoS settings of Signaling that is used when PHI connects MG-SIP16.
CH: Enter the number of channels to be used per MG-SIP16 [1-16].
Service of Authentication exists: Select the box if a registration is required per number. Note
Note: Whether to use Service of Authentication is determined by the carrier’s selected services.
For more information about this feature, refer to Multiple Number Service (MG-SIP) [M-113].

MG-SIP Page 16 of 75 5/8/2009
6.16 AMGVL - Register the voice control data when connecting to MG-SIP16. If the settings are not
specified by this command, the values will be set to “G711” and “40ms” automatically.
A RT: Specify Physical Route Number (MG-SIP16).
LOC-ID: Specify Destination Location ID (Destination MG-SIP16). *LOC-ID=0 must be set when
IPPAD card is mounted.
B RT: Specify Physical Route Number (MG-SIP16) in the case of tandem connection between MGs.
SETTING OF SERVICE TYPE (VOICE PACKET): Specify QoS settings of Voice Speech
PAYLOAD TYPE: Specify Payload type. *G.711 and 20ms must be set for public SIP network.
PAYLOAD SIZE: Specify Payload size.
Note: Unless the AMGVL Command is not used for the registration, the AIVCL command is
required to register the attributes. For more information, refer to the Office Data Specifications.
6.17 ACNAL - Assign the Calling Number Pattern (CNP) on an Access Code basis. *When this
command is used, assign ARTD command CDN66 to DC=15.
• Settings for a Call Originated to SIP Network
Specify Calling Number Pattern against route for Caller ID Notification and Access Code.
IC/OG = OG (Outgoing)
RT: Enter Route Number to be sent Caller ID Notification per Access Code.
ACC: Enter Access Code.
CNP: Enter Calling Number Pattern.
Note: To modify CNP set by the ACNAL command, use the ACND command; ACNDN
command cannot be used.
• Settings for a Call Arrived from SIP Network
Specify Calling Number Pattern against route for Caller ID Notification and Access Code.
IC/OG = IC (Incoming)
RT: Enter Route Number to be arrived.
ACC: Enter Access Code.
DC: Dialed Number Confirmation
6.18 ACND - Assign the data for number change to CNP has been specified by the ACNAL command
CNP: Calling Number Pattern
SKIP: Skip Digit
ADD: Number of Digits of the Additional Number
DC: Digit Code of the Additional Number
6.19 ACDD - Change Digit Code according to DID Addressing.
DAY/NIGHT: Day/Night Mode
RT: Enter the B-Channel Route Number.
DC: Enter Number of digits for this DC must match the data in DC of the ARTD command.
CDC: Enter Change Digit Code [Maximum 24 digits]
AD: Enter Additional Dialing
XFR: Enable/Disable Transfer Service
After the registration has been completed, reset MG-SIP16 (ONÆOFFÆON).

MG-SIP Page 17 of 75 5/8/2009
7. MG-SIP Startup and Programming
7.1 Maintenance Console Settings
Use a serial connection client such as Hyperterminal to connect MG-SIP16 on a software basis. Be sure to
connect RS-232C cable (straight cable) between MG-SIP16 and the Maintenance Console (PC) when
initially setting up MG-SIP16.
STEP 1: Open a communication software Hyper Terminal on the Maintenance Console, and set up the
connection with MG-SIP16.
(1) Startup Windows on the Maintenance Console.
(2) Click Start, point to Programs ÆAccessories ÆCommunications, and then click Hyper
Terminal icon.
(3) Communication setting dialog box appears. Enter the name, icon, connection type, and port settings.
Note: There is no specific note in assigning the name and icon. Select the connection type
COM1 (depending on the PC). Port settings should be specified as follows:
STEP 2: Power ON the switch on the rear panel of MG-SIP16. Linux installed in MG-SIP16 is activated.
STEP 3: The following message is displayed on the Maintenance Console screen. NOTE 1

MG-SIP Page 18 of 75 5/8/2009

MG-SIP Page 19 of 75 5/8/2009
7.2 Configuration Setting
Using Configuration Commands, assign the MG-SIP16 data. The following data is assigned here:
Note: Assign the data depending on the SIP network configuration.
STEP 1: When a prompt “->” is displayed, enter “config” and then press Enter key.
STEP 2: A prompt “MG-SIP>” is displayed indicating the console command mode.

MG-SIP Page 20 of 75 5/8/2009
Table of contents
Other NEC Gateway manuals