Well SIP services are transported via either TCP or UDP on port 5060. What have you written so far up to this point? As far as governance of the SIP control messages, perhaps a good review of SIPp may help as I have wrote some quick and dirty SIP calls to test response codes. Really this is a client/server code relation ship. Do you know what you must send to get a good SIP 100 OK?

Welcome to SIPp