Configuration steps in IP PBX-Headquarter:
1. Create usergroups staff, utility, and ext-all.
2. Include staff and utility in the Reachable usergroup of ext-all.
3. Create a user account for each staff and assign it to usergroup staff.
4. Create an additional user account public and assign it to usergroup utility.
5. Create a device for each physical phone and designate an extension.
6. Assign extensions of staff phones to corresponding users.
7. Assign all extensions of utility phones to share the same user public.
8. Create a route pstn with pattern 9Z. with number of digits stripped 1, no prefix.
9. Create a route pstn-br with pattern 90118621. with number of digits stripped 8, prefix 9.
10. Create a route ext-br with pattern 2XX and number of digits stripped 0, no prefix.
11. Create a routegroup pstn-out containing route pstn only.
12. Create a routegroup to-br containing routes pstn-br and ext-br.
13. Create a PSTN trunk with ID 1, port 1-4, choose pstn-out as Outbound routegroup, leave
DID unchecked, and select ext-all as the Usergroup of privilege.
14. Create a dynamic peer SIP trunk with ID 100; password hq-secret; choose to-br as
Outbound routegroup, leave DID unchecked, and select staff as the Usergroup of
privilege.
15. Return to usergroup configuration. For usergroup staff, include SIP trunk 100, PSTN
trunk pstn1 and Reachable usergroup utility; while for usergroup utility, include
Reachable usergroup staff only.
16. Reload IP PBX Service.
Configuration steps in IP PBX-Branch:
1. Create usergroups staff, utility, and ext-all.
2. Include staff and utility in the Reachable usergroup of ext-all.
3. Create a user account for each staff and assign it to usergroup staff.
4. Create an additional user account public and assign it to usergroup utility.
5. Create a device for each physical phone and designate an extension.
6. Assign extensions of staff phones to corresponding users.
7. Assign all extensions of utility phones to share the same user public.
8. Create a route pstn with pattern 9Z. with number of digits stripped 1, no prefix.
9. Create a route pstn-hq with pattern 9001408. with number of digits stripped 7, prefix 9.
10. Create a route ext-hq with pattern 1XX and number of digits stripped 0, no prefix.
11. Create a routegroup pstn-out containing route pstn only.
12. Create a routegroup to-hq containing routes pstn-hq and ext-hq.
13. Create a PSTN trunk with ID 1, port 1-2, choose pstn-out as Outbound routegroup, leave
DID unchecked, and select ext-all as the Usergroup of privilege.
14. Create a SIP trunk with ID 100 pointing to 64.1.0.1 port 5060; password hq-secret;
choose to-hq as Outbound routegroup, leave DID unchecked, and select staff as the
Usergroup of privilege.
15. Return to usergroup configuration. For usergroup staff, include SIP trunk 100, PSTN
trunk pstn1 and Reachable usergroup utility; while for usergroup utility, include
Reachable usergroup staff only.
16. Reload IP PBX Service.