Can I setup my own Asterisk VoIP Server with iOS swift?

I want to connect to my own Asterisk server. I'm using CallKit. Is this possible with CallKit? Or if you know another way, please let me know

Can I setup my own Asterisk VoIP Server with iOS swift?
 
 
Q