I've finished my SIP client and it works, as long as it comes to one on one, or x on x if the participants are defined in the beginning of the call.
I would like to attach a caller or a callee in the middle of the call, I understand the main issue is in the media session joining implementation, but I do need to tell the new participant the details of all the participants involved, how would it be best to implement this?
Thanks, Adam.
Like ChrisW says, RFC 4353 is your friend here.
Before you actually implement the logic around conferencing, you need several bits and pieces. You need to support the Join header, the REFER method (which builds on the events package. You may also need the Replaces header, and support call transfer.
The Call Control RFC will show you the actual call flows around adding/removing participants etc.
Also, take a look at the relevant section of the Hitchhiker's Guide to SIP.
And, as always, the sip-implementors list is a good source of help.