Configuration Procedure
Configuring the AR
Context
Configuration Roadmap
The configuration roadmap is as follows:
Configure a voice user.
Configure a call route and a SIP trunk group.
Configure intra-office and inter-office call prefixes.
Procedure
Configure a voice user.
<Huawei> system-view[Huawei] voice[Huawei-voice] pbxuser 82000 pots[Huawei-voice-pbxuser-82000] port 1/0/0[Huawei-voice-pbxuser-82000] telno 82000[Huawei-voice-pbxuser-82000] quitConfigure a call route UCM.
[Huawei] voice[Huawei-voice] callroute UCM[Huawei-voice-callroute-UCM] quitCreate and configure a trunk group UCM1.
[Huawei-voice] trunk-group UCM1 sip no-register[Huawei-voice-trunkgroup-UCM1] callroute UCM[Huawei-voice-trunkgroup-UCM1] signalling-address ip 10.1.1.2 port 5070[Huawei-voice-trunkgroup-UCM1] media-ip 10.1.1.2[Huawei-voice-trunkgroup-UCM1] peer-address static 10.1.1.3 5060[Huawei-voice-trunkgroup-UCM1] home-domain 10.1.1.3[Huawei-voice-trunkgroup-UCM1] number-parameter 53 0[Huawei-voice-trunkgroup-UCM1] reset[Huawei-voice-trunkgroup-UCM1] quit[Huawei-voice]Note: Trunkgroup reset succeeds.Configure intra-office and inter-office call prefixes.
# Configure an intra-office call prefix. Create a call prefix profile 82, set the call prefix to 82, specify the basic service, configure the intra-office call, and set the maximum and minimum lengths of a number that can be parsed to 5 and 2 respectively.
[Huawei-voice] callprefix 82[Huawei-voice-callprefix-82] prefix 82[Huawei-voice-callprefix-82] call-type category basic-service attribute 0[Huawei-voice-callprefix-82] digit-length 2 5[Huawei-voice-callprefix-62] quit# Configure an inter-office call prefix. Create a call prefix profile 80, set the call prefix to 80, specify the basic service, configure the local call, and set the maximum and minimum lengths of a number that can be parsed to 5 and 2 respectively.
[Huawei-voice] callprefix 80[Huawei-voice-callprefix-80] prefix 80[Huawei-voice-callprefix-80] call-type category basic-service attribute 1[Huawei-voice-callprefix-80] callroute UCM[Huawei-voice-callprefix-80] digit-length 2 5[Huawei-voice-callprefix-80] quitSave the configuration.
[Huawei-voice] save
Configuring the Cisco CUCM
Context
Configuration Roadmap
The configuration roadmap is as follows:
Configure a SIP trunk.
Configure parameters of the remote device, such as the IP address and port number.
Configure a routing rule.
Procedure
Access the CUCM main menu and choose Device > Trunk to access the Trunk Configuration page, as shown in Figure Trunk configuration. Set Trunk Type to SIP Trunk, specify SIP, and click Next.Figure1 Trunk configuration

In Device Information, enter parameters of the remote device, such as the name of the remote device, as shown in Figure Device information.Figure1 Device information

In SIP Information, enter the IP address and port number of the remote device, as shown in Figure SIP information.Figure1 SIP information

Click Save to save configured parameters. Click Reset to make the configuration take effect.
Choose Call Routing > Route/Hunt > Route Pattern to configure a routing rule. The routing rule is triggered when the Cisco CUCM receives a called number that starts with 82 and has three characters following 82. Select the IP address of the CUCM from the Gateway/Router List drop-down list box. Click Save to save the configuration, as shown in Figure Configuring a routing rule.Figure1 Configuring a routing rule

Verification
When the user of phone 80001 calls the user of phone 82000, phone 82000 rings.
Exception Handling
If the communication fails, run the debugging voice sipmsg all command to enable log collection of the sipmsg module and contact technical support personnel.




