Hi, the best method would be using BRI or PRI interfaces, you also need programming the PABX and have the ports on them, alternatively you can configure the router to be between PBX and telco lines, this way the PBX does not need any configuration or additional HW.
If you are interest in project guidance,contact me at the address present in my profile.