Example for Configuring an AR as a Branch Gateway to Access UC
Networking Requirements
- When the central node is correctly connected to the AR local node:
- All users at the headquarters and branches register with the central node.
- The central node processes all internal calls.
- When the central node is faulty or disconnects from the local node, local users register with the local node, and the local node processes service requests (including intra-office calls and incoming and outgoing calls) from local users. This is known as local regeneration.
Figure 2-85 shows the typical network.
- Intra-office calls can be made by dialing short numbers between IP phones, POTS phones, and fax machines at the headquarters, branch 1, and branch 2.
- The central node can be connected to local nodes through SIP trunks and to the PSTN to implement incoming and outgoing calls.
Data Plan
The data plan provided in this example is for reference only. Plan data by negotiating with users and the carrier.
Endpoint |
Short Number |
Long number |
---|---|---|
IP phone |
86000 |
28886000 |
POTS phone |
88001 |
- |
Automatic switchboard access code |
- |
28888999 |
Location |
NE |
Peer Office |
Trunk Type |
Trunk Group Name |
Media and Signaling IP |
Local Port Number |
Peer Port Number |
---|---|---|---|---|---|---|---|
Branch 2 |
Local Node 2 |
Central Node |
SIP IP |
sipip |
172.16.1.2 |
5063 |
5060 |
SIP AT0 |
sipat0 |
172.16.1.2 |
5061 |
Location |
NE |
Peer Office |
Trunk Type |
Slot/Subcard/Port Number |
Rout |
---|---|---|---|---|---|
Branch 2 |
Local Node 2 |
PSTN |
PRA DSS1 |
1/0/0 |
0 |
Location |
NE |
Prefix Type |
Prefix |
Office Route Selection Code |
Called Number Change |
Calling Number Change |
Remarks |
---|---|---|---|---|---|---|---|
Branch 2 |
Local Node 2 |
Intra-office call prefix |
8 |
- |
- |
- |
Intra-office prefix |
Intra-office call prefix |
2888 |
- |
- |
- |
Intra-office prefix |
||
National toll call prefix |
90 |
Rout: 1 |
Delete the first digit. |
Changes the number to the automatic switchboard access code 28888999 of branch 2. |
Outgoing calls to the local PSTN. |
||
International toll call prefix |
900 |
||||||
Outgoing call prefix |
9 |
||||||
Outgoing call prefix |
9021 |
Location |
NE |
Board Type |
Slot Number |
---|---|---|---|
Branch 2 |
Local Node 2 |
2E1/T1–F |
1 |
4FXS1FXO |
2 |
Procedure
- Configure the service mode to IP PBX.
<Huawei> system-view [Huawei] voice [huawei-voice] service-mode pbx [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 IP address of interface 0/0/0 to 172.16.1.2, and add 172.16.1.2 to the media and signaling IP address pools of the interface.
<Huawei> system-view [Huawei] interface gigabitethernet 0/0/0 [Huawei-GigabitEthernet0/0/0] ip address 172.16.1.2 24 [Huawei-GigabitEthernet0/0/0] quit [Huawei] voice [Huawei-voice] voip-address media interface gigabitethernet 0/0/0 172.16.1.2 [Huawei-voice] voip-address signalling interface gigabitethernet 0/0/0 172.16.1.2
- Configure the SIP server.
[Huawei-voice] sipserver [Huawei-voice-sipserver] signalling-address ip 172.16.1.2 port 5060 [Huawei-voice-sipserver] media-ip 172.16.1.2 [Huawei-voice-sipserver] register-uri abcd.com [Huawei-voice-sipserver] home-domain abcd.com [Huawei-voice-sipserver] reset [Huawei-voice-sipserver] quit
- Set the default country code to 86 and default area code to 021. Enable country/area code transformation.
[Huawei-voice] pbx default-country-code 86 default-area-code 021 [Huawei-voice] pbx enable-country-area-transform enable
- Configure prefixes.
- Configure user numbers.
- Configure trunk groups.
- Configure the post-routing number change.
[Huawei-voice] afterroute-change 9 [Huawei-voice-afterroute-change-9] callprefix 9 [Huawei-voice-afterroute-change-9] trunk-group pra [Huawei-voice-afterroute-change-9] caller del-then-insert 1 32 28888999 [Huawei-voice-afterroute-change-9] called del 1 1 [Huawei-voice-afterroute-change-9] quit
- Configure local regeneration.
[Huawei-voice] local-survival [Huawei-voice-local-survival] dataserver ip 10.10.10.2 port 8099 [Huawei-voice-local-survival] dataservertype u1900 [Huawei-voice-local-survival] primary-trunk-group sipip proxyreg-trunk-group sipat0 [Huawei-voice-local-survival] local-address ip 172.16.1.2 port 8000 [Huawei-voice-local-survival] password cipher Please input user password(16-32 chars):********* //Assume that the local regeneration BIN channel authentication password is a12345678987654321 which is the same as the authentication password for adding the local node AR on the U1900 central node. [Huawei-voice-local-survival] sync-interval 2 [Huawei-voice-local-survival] transfer tls [Huawei-voice-local-survival] reset [Huawei-voice-local-survival] save
- Import certificate and private key files.
Skip this step if the transmission mode in step 9 is configured to TCP. However, non-encrypted TCP transmission has security risks. It is recommended that you use TLS transmission.
- Configuration Files
No.
Action
Expected Result
1
Verifying intra-office calls made by short numbers between SIP users and POTS users- Pick up the IP phone 86000 at branch 2 and call IP phone 81000 at the headquarters.
- Pick up IP phone 86000 at branch 2 and call POTS phone 88001 at branch 2.
- IP phone 81000 rings. The call is set up after the IP phone is picked up.
- POTS phone 88001 rings. The call is set up after the POTS phone is picked up.
2
Verifying outgoing calls- Pick up IP phone 86000 at branch 2 and dial 9XXXXXXXX to call PSTN user B at branch 2.
- Pick up IP phone 86000 at branch 2 and dial 9010XXXXXXXX to call PSTN user A at the headquarters.
- PSTN user B's phone rings. The call is set up after the phone is picked up.
- PSTN user A's phone rings. The call is set up after the phone is picked up.
3
Verifying incoming calls- Pick up the phone of PSTN user B at branch 2 and dial the long number 28886000 to call IP phone 86000 at branch 1.
- Pick up the phone of PSTN user B at branch 2 and dial the enterprise switchboard number 28888999 and then the extension number 88001.
- IP phone 28886000 rings. The call is set up after the IP phone is picked up.
- POTS phone 88001 rings. The call is set up after the POTS phone is picked up.
4
Verifying local regeneration calls by disconnecting from the central node- Pick up IP phone 86000 at branch 2 and call POTS phone 88001 at branch 1.
- Pick up IP phone 86000 at branch 2 and dial 9XXXXXXXX to call PSTN user B at branch 2.
- Pick up the phone of PSTN user B at branch 2 and dial the long number 28886000 to call IP phone 86000 at branch 2.
- Pick up the phone of PSTN user B at branch 2 and dial the enterprise switchboard number 28888999 and then the extension number 88001.
- POTS phone 88001 rings. The call is set up after the POTS phone is picked up.
- PSTN user B's phone rings. The call is set up after the phone is picked up.
- IP phone 28886000 rings. The call is set up after the IP phone is picked up.
- POTS phone 88001 rings. The call is set up after the POTS phone is picked up.
Verify the configuration.
- Router configuration
# clock source 0 1/0/0 priority 9 # set workmode slot 1 e1t1 e1-voice # pki realm u1900 # ssl policy u1900 type server pki-realm u1900 # interface GigabitEthernet0/0/0 ip address 172.16.1.2 255.255.255.0 # voice voip-address media interface GigabitEthernet 0/0/0 172.16.1.2 voip-address signalling interface GigabitEthernet 0/0/0 172.16.1.2 pbx default-area-code 021 pbx enable-country-area-transform enable # port ve1 1/0/0 signal CCS # sip field-header user-agent HUAWEI-eSpace-UCExpress # callroute 1 # callroute 2 # sipserver signalling-address ip 172.16.1.2 port 5060 media-ip 172.16.1.2 register-uri abcd.com home-domain abcd.com # trunk-group pra dss1-user trunk-pra 1/0/0 callroute 1 # trunk-group sipat0 sip trunk-circuit signalling-address ip 172.16.1.2 port 5061 media-ip 172.16.1.2 peer-address static 10.10.10.2 5060 register-uri abcd.com home-domain abcd.com trunk-sipat0 28888001 default-called-telno 88001 # trunk-group sipip sip no-register callroute 2 signalling-address ip 172.16.1.2 port 5063 media-ip 172.16.1.2 peer-address static 10.10.10.2 5060 register-uri abcd.com home-domain abcd.com # callprefix 8 prefix 8 call-type category basic-service attribute 0 digit-length 5 32 # callprefix 9 prefix 9 call-type category basic-service attribute 1 digit-length 1 32 callroute 1 # callprefix ivr prefix 28888999 call-type category vu-service vu-service-name vudefault digit-length 8 32 # local-survival dataserver ip 10.10.10.2 dataservertype u1900 local-address ip 172.16.1.2 sync-interval 2 password cipher %^%#nw@y%OP0$#],HR"wQH/3`|.@A7+ZttF2*1D!)C~.or3f~>0ZB#EX,3dEoR%^%# ssl-server-policy u1900 primary-trunk-group sipip proxyreg-trunk-group sipat0 # pbxuser 88001 pots telno 88001 port 2/0/1 call-right out all # afterroute-change 9 callprefix 9 trunk-group pra caller del-then-Insert 1 32 28888999 called del 1 1 #