tags:

views:

412

answers:

3

INVITE sip:[email protected] SIP/2.0
From:
<sip:[email protected]>;tag=2084442460
To: Via:
SIP/2.0/UDP
domain.com:5060;branch=z9hG4bK2df7b9194cd51e25
Call-ID: [email protected] CSeq: 1
INVITE Contact:
<sip:[email protected]:5060>
Content-Length: 226 Content-Type:
application/sdp

I found this on the net. It seems to have those things that a packet has to have. How do I write a program in C# to send this packet?

I have to build a program that can do a call setup.

A: 

A couple of years ago I worked with the JAIN-SIP library in Java- I spent quite alot of time looking for a .Net equivalent but it seems SIP as a protocol is too old to be of any interest to .Net developers. I guess what im saying is, do you absolutely have to create this in C#?

If so, this document will help you - http://www.ietf.org/rfc/rfc3261.txt.

The packet you described above was the "INVITE" message- the first in a chain of messages. You invite a user, who will return with "OK" if they accept the invitation. After receiving this, send an ACK packet and then the two clients will be setup to comunicate. See the RFC for more information on the structure of these packets- what headers must be present, etc.

WiseGuyEh
A: 

This question has links to several SIP libraries for .NET. That's probably a good place to start.

Jon B
A: 

I wrote up a couple of code project pages on getting started with SIP/SDP for anyone else who comes across this page (it is pretty generic between languages and apis):

http://www.codeproject.com/KB/IP/SIPIntroduction.aspx http://www.codeproject.com/KB/IP/SDPIntroduction.aspx

jnielsen