How to Config connection between SER(SIP Serve) and Asterisk

i want to set system that

SIP phone -->SER -->Asterisk -->PSTN

how to set and config system between SER(SIP server) and Asterisk Server

Please answer for me (step by step)

thank you very much