I would get the source code for like, linphone or some such, and see how they did it. There may even be a library to handle the SIP information for you. If not, you can at least see what they did. A Good place to start is the SIP RFC .
Comatose
Taboo Programmer
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215