Debian Codegraph @

Xpjproject/pjsip/docs/doxygen.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
3 * Copyright (C) 2003-2008 Benny Prijono <[email protected]>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19
20 /**
21 * @file doxygen.h
22 * @brief PJSIP Doxygen's mainpage.
23 */
24
25 /*////////////////////////////////////////////////////////////////////////// */
26 /*
27 INTRODUCTION PAGE
28 */
29
30 /**
31 \n
32
33 @mainpage PJSIP - Open Source SIP Stack
34
35 \n
36 \n
37 @section pjsip_intro_sec Introduction
38
39 PJSIP is an Open Source SIP protocol stack, designed to be very small in
40 footprint, have high performance, and very flexible.
41
42 @subsection hist_sec History
43
44 PJSIP has been actively developed since 2003, but its history goes well
45 beyond that. The author has been developing SIP stack since 1999 during
46 RFC 2543 era, and after several experimentation with different approaches
47 in the programming (the first stack actually was in C++!), and also with
48 the evolution of the SIP protocol itself, the current/third generation
49 of PJSIP (the 0.2.9 version is the second generation) can be considered
50 as pretty stable in term of design, and should
51 incorporate all design considerations (and implementation tricks!) that
52 have been learned over the years. Of course only time will tell if this
53 statement can still be held true in the future.
54
55
56
57
58 \n
59 \n
60 @section pjsipgetting_started Getting Started
61
62 PJSIP consists of multiple levels of APIs, which each of them layered on
63 top of another. Because of this, new readers may find it a bit difficult
64 to find the place to start.
65
66 In general, I think perhaps I can recommend two approaches on using PJSIP.
67
68
69 \n
70 @subsection getting_started_high Using PJSUA API
71
72 @ref PJSUA_LIB wraps together all SIP components and media into a high level
73 API, suitable for creating typical SIP user agent applications. It
74 features easy to use API for:
75 - multiple client registration (accounts),
76 - high level SIP and media session (calls),
77 - buddy list, presence and instant messaging,
78 - powerful and very easy to use media manipulation,
79
80 while maintaining some space for customization (custom SIP
81 transport, custom SIP media, etc.) needed by some types of applications.
82 @ref PJSUA_LIB is also aimed to be able to run on devices such as PDA
83 or mobile phones, by carefully allowing application to set the appropriate
84 threading strategy and memory limits (number of calls, media ports, etc.).
85
86 However, @ref PJSUA_LIB may not be the most suitable API for some types
87 of applications, since it is directed towards an easy to use API. For
88 more more advanced use, you may better implement the application by using
89 PJSIP + PJMEDIA directly, as described below.
90
91
92 \n
93 @subsection getting_started_pjsip_pjmedia Using PJSIP and PJMEDIA Directly
94
95 For the ultimate flexibility and power, using PJSIP and PJMEDIA directly
96 is the way to go. The drawback will be, of course, steeper learning curve.
97
98 However, the following links may provide some useful information:
99 - <A HREF="/docs.htm">PJSIP Developer's Guide</A> PDF
100 document is the ultimate guide to understand PJSIP design concept.
101 - there are some samples in <A HREF="/cgi-bin/viewcvs.cgi/pjproject/trunk/pjsip-apps/src/samples/">
102 <b>pjsip-apps/src/samples</b></A> directory.
103 - @ref PJSUA_LIB source code may also be useful to see how high level
104 API are implemented with PJSIP/PJMEDIA.
105 - and finally, you can always <b>Use the Source</b>!
106
107
108
109 \n
110 \n
111 @section this_doc About This Document
112
113 This document contains the reference information about PJSIP. For
114 more in-depth guide (and information in general), readers are
115 encouraged to read the <A HREF="/docs.htm">
116 <b>PJSIP Developer's Guide</b></A> PDF document
117 which can be downloaded from http://www.pjsip.org/docs.htm.
118
119 \n
120 @subsection doc_how_to_read How to Read This Document
121
122 For main navigation, please go to <A HREF="modules.htm"><b>Modules</b></A>
123 link on top of this page.
124
125 This document was generated with <A HREF="http://www.doxygen.org">Doxygen</A>
126 from PJSIP header files.
127
128
129 \n
130 \n
131 @section pjsip_toc Documentation Contents
132
133 Click on <A HREF="modules.htm"><b>Modules</b></A> link on top of this page
134 to get the detailed table of contents.
135
136 The following are top level sections in the <A HREF="modules.htm">
137 <b>Modules</b></A>, as laid out in the following diagram:
138
139 \image html pjsip-arch.jpg "Static Library Layout"
140
141 Enumerating the static libraries from the bottom:
142
143 - <A HREF="/pjlib/docs/main.htm">PJLIB</A>, is the platform abstraction
144 and framework library, on which all other libraries depend,
145
146 - PJLIB-UTIL, provides auxiliary functions such as text scanning,
147 XML, and STUN,
148
149 - PJMEDIA is the multimedia framework,
150
151 - PJMEDIA-CODEC is the placeholder for media codecs,
152
153 - @ref PJSIP_CORE (<b>PJSIP-CORE</b>) is the very core of the PJSIP library,
154 and contains the SIP @ref PJSIP_ENDPT, which is the owner/manager for all
155 SIP objects in the application, messaging elements, parsing, transport
156 management, module management, and stateless operations, and also
157 contains:
158
159 - The @ref PJSIP_TRANSACT module inside <b>PJSIP-CORE</b> provides
160 stateful operation, and is the base for higher layer features such as
161 dialogs,
162
163 - The @ref PJSIP_UA module inside <b>PJSIP-CORE</b> manages dialogs, and supports dialog
164 usages,
165
166 - @ref PJSIP_SIMPLE (<b>PJSIP-SIMPLE</b>) provides the base SIP event framework
167 (which uses the common/base dialog framework) and implements presence
168 on top of it, and is also used by call transfer functions,
169
170 - @ref PJSIP_HIGH_UA (<b>PJSIP-UA</b>) is the high level abstraction of INVITE sessions
171 (using the common/base dialog framework). This library also provides
172 SIP client registration and call transfer functionality,
173
174 - and finally, @ref PJSUA_LIB (<b>PJSUA-LIB</b>) is the highest level of abstraction,
175 which wraps together all above functionalities into high level, easy to
176 use API.
177 */
178
179
180 /**
181 @page page_pjsip_samples PJSIP Samples
182
183 I wish I could write more samples, but for now here are some samples or
184 working applications that are available from the source tree:
185
186 - @ref page_pjsip_sample_sipstateless_c \n
187 This is about the simplest SIP application with PJSIP, all it does is
188 respond all incoming requests with 501 (Not Implemented) response
189 statelessly.
190
191 - @ref page_pjsip_sample_simple_ua_c \n
192 This is a very simple SIP User Agent application that only use PJSIP
193 (without PJSIP-UA). It's able to make and receive call, and play
194 media to the sound device.
195
196 - @ref page_pjsip_sample_simple_pjsuaua_c \n
197 Very simple SIP User Agent with registration, call, and media, using
198 PJSUA-API, all in under 200 lines of code.
199
200 - @ref page_pjsip_samples_pjsua \n
201 This is the reference implementation for PJSIP and PJMEDIA.
202 PJSUA is a console based application, designed to be simple enough
203 to be readble, but powerful enough to demonstrate all features
204 available in PJSIP and PJMEDIA.\n
205 Screenshot on WinXP: \image html pjsua.jpg "pjsua on WinXP"
206
207 - @ref page_pjmedia_samples_siprtp_c \n
208 This is a useful program (integrated with PJSIP) to actively measure
209 the network quality/impairment parameters by making one or more SIP
210 calls (or receiving one or more SIP calls) and display the network
211 impairment of each stream direction at the end of the call.
212 The program is able to measure network quality parameters such as
213 jitter, packet lost/reorder/duplicate, round trip time, etc.\n
214 Note that the remote peer MUST support RTCP so that network quality
215 of each direction can be calculated. Using siprtp for both endpoints
216 is recommended.\n
217 Screenshots on WinXP: \image html siprtp.jpg "siprtp screenshot on WinXP"
218
219 - @ref page_pjsip_perf_c \n
220 This sample contains a complete implementation of a SIP performance
221 measurement tool. Unlike other tool such SIPp, pjsip-perf is geared
222 more towards finding the performance of an endpoint by flooding the
223 endpoint with some requests and time the completion of the requests.\n
224 Screenshots on Linux console: \image html pjsip-perf.jpg "pjsip-perf screenshot on Linux"
225 */
226
227 /**
228 * \page page_pjsip_samples_pjsua PJSUA
229 *
230 * This is the reference implementation for PJSIP and PJMEDIA.
231 * PJSUA is a console based application, designed to be simple enough
232 * to be readble, but powerful enough to demonstrate all features
233 * available in PJSIP and PJMEDIA.
234 *
235 * This file is pjsip-apps/src/pjsua/pjsua_app.c
236 *
237 * Screenshot on WinXP: \image html pjsua.jpg "pjsua on WinXP"
238 *
239 * \includelineno pjsua_app.c
240 */
241
242 /**
243 * \page page_pjsip_sample_simple_ua_c Samples: Simple UA
244 *
245 * This is a very simple SIP User Agent application that only use PJSIP
246 * (without PJSIP-UA). It's able to make and receive call, and play
247 * media to the sound device.
248 *
249 * \includelineno simpleua.c
250 */
251
252 /**
253 * \page page_pjsip_sample_simple_pjsuaua_c Samples: Simple PJSUA
254 *
255 * Very simple SIP User Agent with registration, call, and media, all
256 * in under 200 lines of code.
257 *
258 * \includelineno simple_pjsua.c
259 */
260
261 /**
262 * \page page_pjsip_sample_sipstateless_c Samples: Stateless SIP Endpoint
263 *
264 * This is about the simplest SIP application with PJSIP, all it does is
265 * respond all incoming requests with 501 (Not Implemented) response
266 * statelessly.
267 *
268 * \includelineno sipstateless.c
269 */
270
271 /**
272 * \page page_pjsip_samples_siprtp_c Samples: siprtp - SIP with RTCP Quality Monitoring
273 *
274 * This source is an example to demonstrate using SIP and RTP/RTCP framework
275 * to measure the network quality/impairment from the SIP call. This
276 * program can be used to make calls or to receive calls from other
277 * SIP endpoint (or other siprtp program), and to display the media
278 * quality statistics at the end of the call.
279 *
280 * Note that the remote peer must support RTCP.
281 *
282 * The layout of the program has been designed so that custom reporting
283 * can be generated instead of plain human readable text.
284 *
285 * The source code of the file is pjsip-apps/src/samples/siprtp.c
286 *
287 * Screenshots on WinXP: \image html siprtp.jpg
288 *
289 * \includelineno siprtp.c
290 */
291
292 /**
293 * \page page_pjsip_perf_c Samples: pjsip-perf - SIP Performance Benchmarking Tool
294 *
295 * This sample contains a complete implementation of a SIP performance
296 * measurement tool. Unlike other tool such SIPp, pjsip-perf is geared
297 * more towards finding the performance of an endpoint by flooding the
298 * endpoint with some requests and time the completion of the requests.
299 *
300 * The source code of the file is pjsip-apps/src/samples/pjsip-perf.c
301 *
302 * Screenshots on Linux console: \image html pjsip-perf.jpg
303 *
304 * \includelineno pjsip-perf.c
305 */
306