Hi user! hope below can help:
Configuration Procedure:
This configuration case uses the U1960 as an example, assumes the voice service scenario where 12 analog lines are used to make outgoing calls and the outgoing prefix is 0, and implements the objective through configurations on the CLI.
Configuring the U1960
1. Log in to the U1900 and enter the Config mode.
2. Configure office route selection codes 1, 2, and 3.
config add office selectcode no 1 repeatroute no
config add office selectcode no 2 repeatroute no
config add office selectcode no 3 repeatroute no
3. Configure office routes 1, 2, and 9.
config add office no 1 officeselectcode 1
config add office no 2 officeselectcode 1
config add office no 9 officeselectcode 2
4. Configure national toll prefix (ddd) 90 and international toll prefix (idd) 900.
config add prefix dn 90 callcategory basic callattribute ddd cldpredeal no cldmap no officeselectcode 3
config add prefix dn 900 callcategory basic callattribute idd cldpredeal no cldmap no officeselectcode 3
5. Configure local outgoing prefix 0.
config add prefix dn 0 callcategory basic callattribute local cldpredeal no officeselectcode 3
6. Configure boards.
Add the OSU board on the chassis of the U1900, where the slot number is 4 and corresponding office route number is 9.
config add board slot 4 type OSU officeno 9
Add the ATU board, where the slot number is 2, board type is ATU, and corresponding office route number is 9.
config add board slot 2 type atu officeno 9
7. Allocate user numbers.
Add 100 SIP device IDs 7000 to 7099, where the authentication password is huawei123.
config add batch sipue seid 7000 authorizationtype authbyeid password huawei123 number 100
Add 100 SIP users 7000 to 7099.
config add subscriber eid 7000 dn 7000 number 100
Add call sources.
config add callsource no 1
config add callsource no 2
8. Configure call sources.
Add 50 users whose numbers are 7000 to 7049 to call source 1.
config modify subscriber dn 7000 callsourceno 1 number 50
Add 50 users whose numbers are 7050 to 7099 to call source 2.
config modify subscriber dn 7050 callsourceno 2 number 50
9. Configure route reanalysis.
config add routeanalysis officeselectcode 3 callsourceno 1 officeno 1
config add routeanalysis officeselectcode 3 callsourceno 2 officeno 2
10. Configure the AT0 trunk, where the port numbers are 0 to 8, office route numbers are 1 and 2, line selection mode is polling, and default called number 1 is 88881000.
config modify osu slot 4 portinboard 0-3 officeno 1
config modify osu slot 4 portinboard 4-8 officeno 2
config protocol at0 officeno 2 selectlinemode poll
11. Configure AT0 trunk dedicated lines, where the port numbers are 9, 10, and 11, and corresponding dedicated line numbers are 7100, 7101, and 7102, respectively.
config modify subscriber directdail dn 7100 slot 4 portinboard 9
config modify subscriber directdail dn 7101 slot 4 portinboard 10
config modify subscriber directdail dn 7102 slot 4 portinboard 11
https://support.huawei.com/enterprise/en/doc/EDOC1000020306?section=z00m
Thanks!