玄铁剑

成功的途径:抄,创造,研究,发明...
posts - 128, comments - 42, trackbacks - 0, articles - 174

SIP stack with SIP proxy - (VOIP)

Posted on 2007-03-26 22:36 玄铁剑 阅读(1645) 评论(18)  编辑 收藏 引用 所属分类: windows
Screenshot - proxy.jpg

SIP overview:

SIP is an application-layer control protocol that can establish,
modify, and terminate multimedia sessions (conferences) such as
Internet telephony calls. SIP can also invite participants to
already existing sessions, such as multicast conferences.
Normally SIP uses UDP and TCP port 5060 anf TCP 5061 for SSL communication.
SIP protocol is very similar to HTTP, so who has some knowledge about http
then easy to learn SIP.
SIP doesn't transfer session data like audio,video, RTP(real time protocol) is used
for that, SIP just helps to open RTP streams.

SIP message example:

INVITE sip:john@domain.com SIP/2.0
From: <sip:doe@domain.com>;tag=2084442460

To: <sip:john@1domain.com>

Via: SIP/2.0/UDP domain.com:5060;branch=z9hG4bK2df7b9194cd51e25

Call-ID: john@domain.com-4524j

CSeq: 1 INVITE

Contact: <sip:doe@domain.com:5060>

Content-Length: 226

Content-Type: application/sdp


<session description data, like RTP description>

SIP server types:

stateless SIP server doesn't store any transaction info.
statefull SIP server creates and holds SIP commands transaction state.
registrar/location Allows users to register their locations and later to use that info to
forward calls to registered contact.
B2BUA SIP server is like statefull + holds active calls state.
(This is needed if call billing or full control of call is needed)
presence Provides user availabilty services, like if user is online,offline, ... .
... there are some more, but not so important ones.

Basic SIP commands:

INVITE - Initiates a session. This method includes information about the calling and
called users and the type of media that is to be exchanged.


ACK - Sent by the client who sends the INVITE. ACK is sent to confirm that the
session is established. Media can then be exchanged.


BYE - Terminates a session. This method can be sent by either user.


CANCEL - Terminates a pending request, such as an outstanding INVITE. After a session is established, a BYE method needs to be used to terminate the session.


OPTIONS - Queries the capabilities of the server or other devices. It can be used to check media capabilities before issuing an INVITE.


REGISTER - Used by a client to login and register its address with a SIP registrar server.

Ok, some ABC done,there are many documents on net, so not good idea to rewrite these there.
If want more advanced info then see:
RFC 3261 (defines SIPv2)
http://www.iptel.org/sip/intro
http://www.sipdev.org/wiki/index.php/A_newcomer's_guide_to_SIP
http://www.tech-invite.com/

and also google.com is always your friend.

SIP proxy demo overview.
This SIP proxy example just implements fully functional simple statefull proxy.
You can use hardware SIP phones or soft phones to play with this proxy.
This is advanced example, code is well commeneted, so beginners don't hate me beacuse no more blaaa text here. Just read rfc 3216, see info links i noted before, if you then look
code all more nicer then.

Some free available softphones in www:
http://www.nch.com.au
http://www.counterpath.net

Feedback

# re: SIP stack with SIP proxy - (VOIP)  回复  更多评论   

2010-07-09 02:34 by MckenzieNorma18
People would like to reach a good degree, but what is the best way to get it? We would suggest to see for the <a href="http://www.exclusivethesis.com">thesis writing</a> service to order the essay thesis just about this topic from. We tried this and had got good degree.

# re: SIP stack with SIP proxy - (VOIP)  回复  更多评论   

2010-07-09 18:11 by buy term papers
Have just began blogging and I have to say it is important recreation but not making any profit from it…yet it is simple, however students have to testify your custom term papers needs.

# re: SIP stack with SIP proxy - (VOIP)  回复  更多评论   

2010-07-24 05:36 by sitemap
Did you know that the great papers writing service could write the research papers of perfect quality, thence it had to be worth to buy written essays at that place.

# re: SIP stack with SIP proxy - (VOIP)  回复  更多评论   

2010-08-17 17:27 by buy ringtones
Oh, I have watched this really good article at the mp3 ringtones or just voice ringtones offering web site. This used to be a kind of good job, thank you a lot.

# re: SIP stack with SIP proxy - (VOIP)  回复  更多评论   

2010-09-07 00:17 by bookmarking submission
Do not know anything about submission? Do you still need to improve your site traffic? No problems, social bookmarking service can help you.

# re: SIP stack with SIP proxy - (VOIP)  回复  更多评论   

2010-10-18 14:23 by Research Papers
You should be really a good network programmer so that you can solve it on own.
只有注册用户登录后才能发表评论。