Hi Please follow below steps:
FusionPBX in server A, ASTPP in server B
Create a SIP device in ASTPP
Register that ASTPP SIP device as a gateway in FusionPBX
Select that gateway as outbound route in fusionPBX
Check ODBC connections to Mysql from ASTPP server
Configure ASTPP properly with rates...