Configuring Intelligent Routing
Intelligent routing allows the PBX to select routes according to user-defined route selection policies. That is, the PBX intelligently selects trunk links to transmit voice services to implement load balancing with the minimum expense.
- Configuring Re-routing Upon a Failure
- Configuring a Call Route Plan Based on Charge Rates
- Configuring a Call Route Plan Based on Load Balancing
- Configuring a Call Route Plan Based on the Call Percentage
- Configuring a Call Route Plan Based on User Rights
- Configuring a Call Route Plan Based on Link Balancing
- Routing Base on Time Segment and Calling Number
Configuring Re-routing Upon a Failure
When the PBX fails to select a route according to the configured route selection policy, it re-selects a route according to the backup route policy specified by the failure index.
Context
Re-routing is configured in the following scenarios:
- Routing failure
The cause is that the trunk link is faulty.
- Call failure
The possible cause is that the SIP trunk link is faulty or the remote device is faulty. The remote device is faulty when the remote device cannot respond to a call request initiated by the PBX. The PBX determines whether the SIP trunk link is normal according to the heartbeat. After the SIP trunk configuration is complete, run the reset command to activate the trunk link. After the trunk link is activated, the heartbeat is enabled.
As shown in Figure 2-61, the PBX connects to carrier A through the R2 trunk, and the callroute is 1; the PBX connects to carrier B through the SIP trunk, the callroute is 2, and the inter-office call prefix is 1. Re-routing is configured upon a route selection failure. Normally, outgoing calls on the PBX are made through the R2 trunk. When calls fail to be routed to carrier A over the R2 trunk, calls are routed over the SIP trunk.
Prerequisites
- A trunk group has been configured. For details on how to configure a trunk group, see Configuring Trunk Groups.
- Call routes 1 and 2 have been configured. For details on how to configure a call route, see Configuring a Call Route.
Configuring Re-routing
Step |
Action |
Command |
---|---|---|
1 |
Enter the system view. |
system-view |
2 |
Enter the voice view. |
voice |
3 |
Create a call route plan. |
callroute callroute-name |
4 |
Return to the voice view. |
quit |
5 |
Create re-routing. |
reroute-deal name |
6 |
Configure re-routing information. |
re-callroute name |
7 |
Configures a failure type of re-routing. |
failed-type type value |
8 |
Return to the voice view. |
quit |
Configure Prefix Re-routing
Step |
Action |
Command |
---|---|---|
1 |
Create a call prefix profile and enter its view. |
callprefix callprefix-name |
2 |
Configure a call prefix. |
prefix prefix |
3 |
Configure routing information for the call prefix. |
callroute callroute-name |
4 |
Save the configuration. |
save |
Example
Configure callroute 1 to carrier A and set the call prefix to 2, configure callroute 2 to carrier B, and configure the link of callroute 2 as the backup of call route 1 when route selection fails. Specify re-routing upon a routing failure as the re-routing type.
<Huawei> system-view [Huawei] voice [Huawei-voice] callroute 1 [Huawei-voice] callroute 2 [Huawei-voice] trunk-group 1 [Huawei-voice-trunkgroup-1] callroute 1 [Huawei-voice-trunkgroup-1] quit [Huawei-voice] reroute-deal 1 [Huawei-voice-reroute-deal-1] re-callroute 2 [Huawei-voice-reroute-deal-1] failed-type route-failed [Huawei-voice-reroute-deal-1] callroute 1 [Huawei-voice-reroute-deal-1] quit [Huawei-voice] callprefix 1 [Huawei-voice-callprefix-1] prefix 1 [Huawei-voice-callprefix-1] callroute 1 [Huawei-voice-callprefix-1] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the configuration of the call route plan. |
display voice callroute |
[Huawei] display voice callroute
Call route name : 1 Call route select type : none Call route name : 2 Call route select type : none |
Verify the call prefix configuration. |
display voice callprefix [ callprefix-name ] |
[Huawei] display voice callprefix 1
Callprefix : 1 Enterprise : default Dn-set : DefaultDialPlan Prefix : 1 Call category : Call attribute : Minimum length :4 Maximum length :8 Ring delay(s) : 0 Long cli switch : disable Caller map switch : disable Called map switch : disable Call route name : 1 |
Check re-routing information. |
display voice reroute-deal [ reroute-deal-name ] |
[Huawei] display voice reroute-deal 1
Spec: 256, Records : 1 -------------------------- Reroute-deal name : 1 Recall route name : 2 Call route name : 1 Failed type value : route-failed |
Configuring a Call Route Plan Based on Charge Rates
The PBX searches for routes in ascending order of charge routes until it finds idle circuits. If routes have the same charge rate, the PBX searches for routes in ascending order of trunk group numbers. If no idle circuit is found, the PBX searches for routes for which no charge rate is configured in ascending order of trunk group numbers until it finds idle circuits.
Context
Prerequisites
- A trunk group has been created and its connection parameters have been configured. For details about the configuration, see Configuring Trunk Groups.
- A call prefix has been configured. For details on how to configure a call prefix, see Configuring a Call Prefix.
Creating Routing Information
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Create a call route plan. |
callroute callroute-name |
- |
4 |
Configure intelligent routing. |
selecttype call route select type value |
Set the route selection type to chargebase. |
5 |
Return to the voice view. |
quit |
- |
6 |
Enter the trunk group view. |
trunk-group trunk-group-name |
- |
7 |
Bind a call route to the trunk group. |
callroute callroute-name |
charge must be specified. |
8 |
Save the configuration. |
save | - |
Configure Prefix Re-routing
Step |
Action |
Command |
---|---|---|
1 |
Create a call prefix profile and enter its view. |
callprefix callprefix-name |
2 |
Configure a call prefix. |
prefix prefix |
3 |
Configure routing information for the call prefix. |
callroute callroute-name |
4 |
Save the configuration. |
save |
Example
Configure a call route plan based on charge routes. The charge rates of call routes 1 and 2 are 1 and 2 respectively. Call route 1 corresponds to trunk group 1 and call route 2 corresponds to trunk group 2.
<Huawei> system-view [Huawei] voice [Huawei-voice] callroute 1 [Huawei-voice-callroute-1] selecttype chargebase [Huawei-voice-callroute-1] quit [Huawei-voice] trunk-group 1 [Huawei-voice-trunkgroup-1] callroute 1 charge 1 [Huawei-voice-trunkgroup-1] quit [Huawei-voice] trunk-group 2 [Huawei-voice-trunkgroup-2] callroute 1 charge 2 [Huawei-voice-trunkgroup-2] quit [Huawei-voice] callprefix 1 [Huawei-voice-callprefix-1] prefix 1 [Huawei-voice-callprefix-1] callroute 1 [Huawei-voice-callprefix-1] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the configuration of the call route plan. |
display voice callroute |
[Huawei]display voice callroute 1
Call route name : 1 Call route select type : chargebase |
Verify the call prefix configuration. |
display voice callprefix [ callprefix-name ] |
[Huawei]display voice callprefix
Callprefix : 1 Enterprise : default Dn-set : DefaultDialPlan Prefix : 1 Call category : Call attribute : Minimum length :4 Maximum length :8 Ring delay(s) : 0 Long cli switch : disable Caller map switch : disable Called map switch : disable Call route name : 1 Callprefix : 2 Enterprise : default Dn-set : DefaultDialPlan Prefix : 1 Call category : Call attribute : Minimum length :4 Maximum length :8 Ring delay(s) : 0 Long cli switch : disable Caller map switch : disable Called map switch : disable Call route name : 2 |
Configuring a Call Route Plan Based on Load Balancing
The PBX searches for routes in ascending order of trunk group numbers until it finds a route with idle circuits.
Context
Prerequisites
- A trunk group has been created and its connection parameters have been configured. For details about the configuration, see Configuring Trunk Groups.
- A call prefix has been configured. For details on how to configure a call prefix, see Configuring a Call Prefix.
Creating Routing Information
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Create a call route plan. |
callroute callroute-name |
- |
4 |
Configure intelligent routing. |
selecttype call route select type value |
Set the route selection type to loadshare. |
5 |
Return to the voice view. |
quit |
- |
6 |
Enter the trunk group view. |
trunk-group trunk-group-name |
- |
7 |
Bind a call route to the trunk group. |
callroute callroute-name |
- |
8 |
Return to the voice view. |
quit |
- |
Configuring a Call Route for a Call Prefix
Step |
Action |
Command |
---|---|---|
1 |
Create a call prefix profile and enter its view. |
callprefix callprefix-name |
2 |
Configure a call prefix. |
prefix prefix |
3 |
Configure routing information for the call prefix. |
callroute callroute-name |
4 |
Save the configuration. |
save |
Example
Configure a call route plan based on load balancing and set the inter-office call prefix to 0. In the call route plan, there are routes with trunk groups 1 and 2.
<Huawei> system-view [Huawei] voice [Huawei-voice] callroute 1 [Huawei-voice-callroute-1] selecttype loadshare [Huawei-voice-callroute-1] quit [Huawei-voice] trunk-group 1 [Huawei-voice-trunkgroup-1] callroute 1 [Huawei-voice-trunkgroup-1] quit [Huawei-voice] trunk-group 2 [Huawei-voice-trunkgroup-2] callroute 1 [Huawei-voice-trunkgroup-2] quit [Huawei-voice] callprefix 0 [Huawei-voice-callprefix-0] prefix 0 [Huawei-voice-callprefix-0] callroute 1 [Huawei-voice-callprefix-0] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the configuration of the call route plan. |
display voice callroute |
The parameter values in the command output are consistent with the settings. |
Verify the call prefix configuration. |
display voice callprefix [ callprefix-name ] |
Configuring a Call Route Plan Based on the Call Percentage
The PBX allocates calls to trunks bound to the same route according to the configured percentage to flexibly control the load.
Context
Prerequisites
- A trunk group has been created and its connection parameters have been configured. For details about the configuration, see Configuring Trunk Groups.
- A call prefix has been configured. For details on how to configure a call prefix, see Configuring a Call Prefix.
Creating Routing Information
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Create a call route plan. |
callroute callroute-name |
- |
4 |
Configure intelligent routing. |
selecttype call route select type value |
Set the route selection type to perloadshare. |
5 |
Return to the voice view. |
quit |
- |
6 |
Enter the trunk group view. |
trunk-group trunk-group-name |
- |
7 |
Bind a call route to the trunk group. |
callroute callroute-name |
percent must be specified. |
8 |
Return to the voice view. |
quit |
- |
Configuring a Call Route for a Call Prefix
Step |
Action |
Command |
---|---|---|
1 |
Create a call prefix profile and enter its view. |
callprefix callprefix-name |
2 |
Configure a call prefix. |
prefix prefix |
3 |
Configure routing information for the call prefix. |
callroute callroute-name |
4 |
Save the configuration. |
save |
Example
Configure the PBX to forward 30% calls through trunk group 1 and 70% calls through trunk group 2, and set the inter-office call prefix to 1.
<Huawei> system-view [Huawei] voice [huawei-voice] callroute 1 [Huawei-voice-callroute-1] selecttype perloadshare [Huawei-voice-callroute-1] quit [Huawei-voice] trunk-group 1 [Huawei-voice-trunkgroup-1] callroute 1 percent 30 [Huawei-voice-trunkgroup-1] quit [Huawei-voice] trunk-group 2 [Huawei-voice-trunkgroup-2] callroute 1 percent 70 [Huawei-voice-trunkgroup-2] quit [Huawei-voice] callprefix 1 [Huawei-voice-callprefix-1] prefix 1 [Huawei-voice-callprefix-1] callroute 1 [Huawei-voice-callprefix-1] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the configuration of the call route plan. |
display voice callroute |
[Huawei]display voice callroute 1
Call route name : 1 Call route select type : perloadshare |
Verify the call prefix configuration. |
display voice callprefix [ callprefix-name ] |
[Huawei]display voice callprefix
Callprefix : 1 Enterprise : default Dn-set : DefaultDialPlan Prefix : 1 Call category : Call attribute : Minimum length : 4 Maximum length : 8 Ring delay(s) : 0 Long cli switch : disable Caller map switch : disable Called map switch : disable Call route name : 1 Callprefix : 2 Enterprise : default Dn-set : DefaultDialPlan Prefix : 1 Call category : Call attribute : Minimum length : 4 Maximum length : 8 Ring delay(s) : 0 Long cli switch : disable Caller map switch : disable Called map switch : disable Call route name : 2 |
Configuring a Call Route Plan Based on User Rights
The PBX assigns different routes for users with different rights. It preferentially selects a route corresponding to a user with advanced right for outgoing calls from the user. If route selection fails, the PBX selects a route corresponding to a user with lower user right.
Context
- Default right: default
- Common right: normal
- Advanced right: advanced
- Super right: super
To forward outgoing calls based on user rights, configure intelligent routing based on user rights. For example, outgoing calls from users with default right and common right are forwarded over an R2 trunk and a SIP trunk respectively. As shown in Figure 2-65, the PBX connects to the carrier network through the R2 trunk, and the trunk group number is 1; the PBX connects to the carrier network through the SIP trunk, the trunk group number is 2, and the inter-office call prefix is 1.
Prerequisites
- A trunk group has been created and its connection parameters have been configured. For details about the configuration, see Configuring a Trunk Group.
- A call prefix has been configured. For details on how to configure a call prefix, see Configuring a Call Prefix.
- A PBX user has been configured. For details on how to configure a PBX user, see Configuring a PBX User.
Creating Routing Information
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Enter the user view. |
pbxuser name |
- |
4 |
Configure the user right. |
priority { default |normal | advanced | super} |
- |
5 |
Return to the voice view. |
quit |
- |
6 |
Create a call route plan. |
callroute callroute-name |
- |
7 |
Configure intelligent routing. |
selecttype selecttype-value |
Set the route selection type to userpriorlevel. |
8 |
Return to the voice view. |
quit |
- |
9 |
Enter the trunk group view. |
trunk-group trunk-group-name |
- |
10 |
Bind a call route to the trunk group. |
callroute callroute-name [ [ [ time time-name | callertelno callertelno-value ] *| charge charge-value | percent percent-value | userpriorlevel userpriorilevel-value ] | [ select-level select-level-value ] ] * |
Set the type of binding a call route to userpriorlevel. |
11 |
Return to the voice view. |
quit |
- |
Configuring a Call Route for a Call Prefix
Step |
Action |
Command |
---|---|---|
1 |
Create a call prefix profile and enter its view. |
callprefix callprefix-name |
2 |
Configure a call prefix. |
prefix prefix |
3 |
Configure routing information for the call prefix. |
callroute callroute-name |
4 |
Save the configuration. |
save |
Example
Configure default right for user 7000 and common right for user 7001, configure routes for trunk groups 1 and 2 based on user rights, and configure the PBX to forward outgoing calls from users with default right through trunk group 1 and outgoing calls from users with common right and higher rights through trunk group 2.
<Huawei> system-view [Huawei] voice [Huawei-voice] pbxuser 7000 [Huawei-voice-pbxuser-7000] priority default [Huawei-voice-pbxuser-7000] quit [Huawei-voice] pbxuser 7001 [Huawei-voice-pbxuser-7001] priority normal [Huawei-voice-pbxuser-7001] quit [Huawei-voice] callroute 1 [Huawei-voice-callroute-1] selecttype userpriorlevel [Huawei-voice-callroute-1] quit [Huawei-voice] trunk-group 1 [Huawei-voice-trunkgroup-1] callroute 1 userpriorlevel default [Huawei-voice-trunkgroup-1] quit [Huawei-voice] trunk-group 2 [Huawei-voice-trunkgroup-2] callroute 1 userpriorlevel normal [Huawei-voice-trunkgroup-2] quit [Huawei-voice] callprefix 1 [Huawei-voice-callprefix-1] prefix 1 [Huawei-voice-callprefix-1] callroute 1 [Huawei-voice-callprefix-1] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the configuration of the call route plan. |
display voice callroute |
[Huawei]display voice callroute 1
Call route name : 1 Call route select type : userpriorlevel |
Verify the call prefix configuration. |
display voice callprefix [ callprefix-name ] |
[Huawei]display voice callprefix
Callprefix : 1 Enterprise : default Dn-set : DefaultDialPlan Prefix : 1 Call category : Call attribute : Minimum length : 4 Maximum length : 8 Ring delay(s) : 0 Long cli switch : disable Caller map switch : disable Called map switch : disable Call route name : 1 Callprefix : 2 Enterprise : default Dn-set : DefaultDialPlan Prefix : 1 Call category : Call attribute : Minimum length : 4 Maximum length : 8 Ring delay(s) : 0 Long cli switch : disable Caller map switch : disable Called map switch : disable Call route name : 2 |
Configuring a Call Route Plan Based on Link Balancing
The PBX searches for routes in ascending order of trunk group numbers until it finds a route with the maximum of idle circuits.
Context
Prerequisites
- A trunk group has been created and its connection parameters have been configured. For details about the configuration, see Configuring Trunk Groups.
- A call prefix has been configured. For details on how to configure a call prefix, see Configuring a Call Prefix.
Creating Routing Information
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view | - |
2 |
Enter the voice view. |
voice | - |
3 |
Create a call route plan. |
callroute callroute-name |
- |
4 |
Configure intelligent routing. |
selecttype call route select type value |
Set the route selection type to loadbalance. |
5 |
Return to the voice view. |
quit |
- |
6 |
Enter the trunk group view. |
trunk-group trunk-group-name |
- |
7 |
Bind a call route to the trunk group. |
callroute callroute-name |
- |
8 |
Return to the voice view. |
quit |
- |
Configuring a Call Route for a Call Prefix
Step |
Action |
Command |
---|---|---|
1 |
Create a call prefix profile and enter its view. |
callprefix callprefix-name |
2 |
Configure a call prefix. |
prefix prefix |
3 |
Configure routing information for the call prefix. |
callroute callroute-name |
4 |
Save the configuration. |
save |
Example
Configure a call route plan based on link balancing. Set trunkgroup to 1 and outgoing prefix to 1.
<Huawei> system-view [Huawei] voice [Huawei-voice] callroute 1 [Huawei-voice-callroute-1] selecttype loadbalance [Huawei-voice-callroute-1] quit [Huawei-voice] trunk-group 1 [Huawei-voice-trunkgroup-1] callroute 1 [Huawei-voice-trunkgroup-1] quit [Huawei-voice] trunk-group 2 [Huawei-voice-trunkgroup-2] callroute 1 [Huawei-voice-trunkgroup-2] quit [Huawei-voice] callprefix 1 [Huawei-voice-callprefix-1] callroute 1 [Huawei-voice-callprefix-1] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the configuration of the call route plan. |
display voice callroute |
The parameter values in the command output are consistent with the settings. |
Verify the call prefix configuration. |
display voice callprefix [ callprefix-name ] |
Routing Base on Time Segment and Calling Number
This topic describes how to configure routing based on the time segment and calling number.
Context
To meet the requirements of selecting different routes in different time segments and for different calling numbers, you can configure intelligent routing based on the time segment and calling number. For example, you can enable the system to route the outgoing calls made between 08:00:00 to 18:00:00 by intra-office user 6000 through SIP1, route the outgoing calls made in other time segments by intra-office user 6000 through SIP2, and route the outgoing calls made by intra-office user 8000 through SIP2 preferentially. Figure 2-67 shows the network.
Prerequisites
A trunk group has been created and its connection parameters have been configured. For details about the configuration, see Configuring Trunk Groups.
A call prefix has been configured. For details about the configuration, see Configuring a Call Prefix.
Procedure
Step |
Action |
Command |
Description |
---|---|---|---|
1 |
Enter the system view. |
system-view |
- |
2 |
Enter the voice view. |
voice |
- |
3 |
Configure a time index. |
time time-name {{ from from-date [ from-time ] to to-date [ to-time ] } | time-repeat { { yearly | monthly } begin-date [ begin-time ] [ end-date [ end-time ] ] | weekly begin-weekday [ begin-time1 ] [end-weekday [ end-time1 ] ] | daily begin-time2 [ end-time2 ] } } |
- |
4 |
Create a call route plan. |
callroute callroute-name |
- |
5 |
Configure intelligent routing. |
selecttype call route select type value |
Set the route selection type to callertimebase. |
6 |
Return to the voice view. |
quit |
- |
7 |
Enter the trunk group view. |
trunk-group trunk-group-name |
- |
8 |
Bind a call route to the trunk group. |
callroute callroute-name |
When binding a call route to the trunk group, you must set either the time or callertelno parameter, or set neither parameters. |
9 |
Return to the voice view. |
quit |
- |
Configuring a Call Route for a Call Prefix
Step |
Action |
Command |
---|---|---|
1 |
Create a call prefix profile and enter its view. |
callprefix callprefix-name |
2 |
Configure a call prefix. |
prefix prefix |
3 |
Configure routing information for the call prefix. |
callroute callroute-name |
4 |
Save the configuration. |
save |
Configuration Example
Configure the system to route the outgoing calls made between 08:00:00 to 18:00:00 by intra-office user 6000 to outer-office user 1000 through SIP1, route the outgoing calls made in other time segments by intra-office user 6000 to outer-office users 1000 through SIP2, and route the outgoing calls made by intra-office user 8000 to outer-office user 1000 through SIP2 preferentially. Enable routing based on the time segment and calling number for call route 1.
<Huawei> system-view [Huawei] voice [Huawei-voice] time 1 time-period from 2013-1-1 08:00:00 to 2014-1-1 18:00:00 [Huawei-voice] time 2 time-period from 2013-1-1 18:00:00 to 2014-1-1 08:00:00 [huawei-voice] callroute 1 [Huawei-voice-callroute-1] selecttype callertimebase [Huawei-voice-callroute-1] quit [huawei-voice] callroute 2 [Huawei-voice-callroute-2] selecttype callertimebase [Huawei-voice-callroute-2] quit [Huawei-voice] trunk-group SIP1 [Huawei-voice-trunkgroup-SIP1] callroute 1 time 1 callertelno 6* select-level 0 [Huawei-voice-trunkgroup-SIP1] callroute 2 callertelno 8* select-level 1 [Huawei-voice-trunkgroup-SIP1] quit [Huawei-voice] trunk-group SIP2 [Huawei-voice-trunkgroup-SIP2] callroute 1 time 2 callertelno 6* [Huawei-voice-trunkgroup-SIP2] callroute 2 callertelno 8* select-level 0 [Huawei-voice-trunkgroup-SIP2] quit [Huawei-voice] callprefix 1 [Huawei-voice-callprefix-1] prefix 1 [Huawei-voice-callprefix-1] callroute 1 [Huawei-voice-callprefix-1] callroute 2 [Huawei-voice-callprefix-1] save
Verification
Action |
Command |
Expected Result |
---|---|---|
Verify the call route plan configuration. |
display voice callroute |
[Huawei]display voice callroute
Call route name : 1 Call route select type : callertimebase Call route name : 2 Call route select type : callertimebase |
Verify the call prefix configuration. |
display voice callprefix [ callprefix-name ] |
[Huawei]display voice callprefix
Callprefix : 1 Enterprise : default Dn-set : DefaultDialPlan Prefix : 1 Call category : Basic service Call attribute : 1(Local) Minimum length : 4 Maximum length : 32 Long cli switch : disable Caller map switch : disable Called map switch : disable Call route name : 1 Call route name : 2 |
- Configuring Re-routing Upon a Failure
- Configuring a Call Route Plan Based on Charge Rates
- Configuring a Call Route Plan Based on Load Balancing
- Configuring a Call Route Plan Based on the Call Percentage
- Configuring a Call Route Plan Based on User Rights
- Configuring a Call Route Plan Based on Link Balancing
- Routing Base on Time Segment and Calling Number