VOIP

Does Xcode or Swift allow VOIP programming? If so, would someone point me in the right direction how I can write an app to do this. Does it require access to a service provider to allow telecommunication?