Configuration Examples for the H.248 AG
This section provides configuration examples for the H.248 AG.
Example for Configuring the Voice Service
Networking Requirements
The H.248 AG allocates the terminal ID to the enterprise, users are registered with the softswitch based on the terminal prefix and terminal ID, and the softswitch locates users and connects calls based on the terminal prefix and terminal ID. Figure 4-9 shows the networking.
The configuration roadmap is as follows:
- Configure media IP address 1 of 192.168.1.2 for the MG interface.
- Configure the signaling address of 192.168.1.2 and port number of 2949 for the H.248 interface.
- Configure the static IP address of 192.168.1.110 and port number of 2944 for the active MGC.
Data Plan
The data plan here is used for reference. The actual configuration is determined based on the user device and softswitch.
Terminal Prefix |
Termination ID |
User Name |
Remarks |
---|---|---|---|
A |
0-3 |
1/0/0-1/0/3 |
Softswitch user |
The terminal prefix and terminal ID of the user must be the same as those on the softswitch; otherwise, the H.248 user may fail to be configured. Here, the terminal ID is the same as that on the softswitch.
Procedure
- Configure the device to work in H.248 AG mode.
<Huawei> system-view [Huawei] voice [huawei-voice] service-mode h248ag [huawei-voice] return <Huawei> save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait.......... Configuration file had been saved successfully Note: The configuration file will take effect after being activated <Huawei>reboot Info: The system is comparing the configuration, please wait. System will reboot! Continue ? [y/n]:yInfo: system is rebooting, please wait...
- # Set the Ethernet IP address of interface0/0/0 to 192.168.1.2, and add IP address 192.168.1.2 to media and signaling IP address pools.
<Huawei> system-view [Huawei] interface gigabitethernet 0/0/0 [Huawei-GigabitEthernet0/0/0] ip address 192.168.1.2 24 [Huawei-GigabitEthernet0/0/0] quit [Huawei] voice [Huawei-voice] voip-address media interface gigabitethernet 0/0/0 192.168.1.2 [Huawei-voice] voip-address signalling interface gigabitethernet 0/0/0 192.168.1.2
- Configure an H.248 AG interface.
[Huawei-voice] h248ag 1 [Huawei-voice-h248ag-1] mg-media-ip1 192.168.1.2 [Huawei-voice-h248ag-1] mg-signal-ip 192.168.1.2 mgport 2949 [Huawei-voice-h248ag-1] primary-mgc-address1 static 192.168.1.110 2944 [Huawei-voice-h248ag-1] reset coldstart [Huawei-voice-h248ag-1] quit
- Configure an H.248 user.
[Huawei-voice] h248aguser 1/0/0 agid 1 terminalid 0 [Huawei-voice] save
- Verify the configuration.
Item
Result
Intra-office call
User A can dial user B and communicate.
Inter-office call
User A can dial user C and communicate.
Incoming call
User C can dial user A and communicate.
Configuration Files
- Router configuration
# interface GigabitEthernet0/0/0 ip address 192.168.200.155 255.255.255.0 # voice voip-address media interface GigabitEthernet 0/0/0 192.168.1.2 voip-address signalling interface GigabitEthernet 0/0/0 192.168.1.2 # h248ag 1 mg-signal-ip 192.168.1.2 mgport 2949 primary-mgc-address1 static 192.168.1.110 2944 mg-media-ip1 192.168.1.2 # h248aguser 1/0/0 agid 1 terminalid 0