blob: 2b6b6fa80abc5a09a1c7c01aedfb8167da9c7def [file] [log] [blame]
Benny Prijono312aff92006-06-17 04:08:30 +00001/* $Id$ */
2/*
Benny Prijonoa771a512007-02-19 01:13:53 +00003 * Copyright (C) 2003-2007 Benny Prijono <benny@prijono.org>
Benny Prijono312aff92006-06-17 04:08:30 +00004 *
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/**
Benny Prijono5ee1f2e2006-09-22 20:43:00 +000031 \n
Benny Prijono312aff92006-06-17 04:08:30 +000032
Benny Prijono5ee1f2e2006-09-22 20:43:00 +000033 @mainpage PJSIP - Open Source SIP Stack
Benny Prijono312aff92006-06-17 04:08:30 +000034
35 \n
36 \n
37 @section intro_sec Introduction
38
39 PJSIP is an Open Source SIP prototol 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_ver Version
121
Benny Prijonoe80cdf02007-01-25 01:38:03 +0000122 This document corresponds to PJSIP version 0.5.10.
Benny Prijono312aff92006-06-17 04:08:30 +0000123
124 \n
125 @subsection doc_how_to_read How to Read This Document
126
127 For main navigation, please go to <A HREF="modules.htm"><b>Modules</b></A>
128 link on top of this page.
129
130 This document was generated with <A HREF="http://www.doxygen.org">Doxygen</A>
131 from PJSIP header files.
132
133
134 \n
135 \n
136 @section pjsip_toc Documentation Contents
137
138 Click on <A HREF="modules.htm"><b>Modules</b></A> link on top of this page
139 to get the detailed table of contents.
140
141 The following are top level sections in the <A HREF="modules.htm">
142 <b>Modules</b></A>, as laid out in the following diagram:
143
144 \image html pjsip-arch.jpg "Static Library Layout"
145
146 Enumerating the static libraries from the bottom:
147
148 - <A HREF="/pjlib/docs/main.htm">PJLIB</A>, is the platform abstraction
149 and framework library, on which all other libraries depend,
150
151 - PJLIB-UTIL, provides auxiliary functions such as text scanning,
152 XML, and STUN,
153
154 - PJMEDIA is the multimedia framework,
155
156 - PJMEDIA-CODEC is the placeholder for media codecs,
157
158 - @ref PJSIP_CORE (<b>PJSIP-CORE</b>) is the very core of the PJSIP library,
159 and contains the SIP @ref PJSIP_ENDPT, which is the owner/manager for all
160 SIP objects in the application, messaging elements, parsing, transport
161 management, module management, and stateless operations, and also
162 contains:
163
164 - The @ref PJSIP_TRANSACT module inside <b>PJSIP-CORE</b> provides
165 stateful operation, and is the base for higher layer features such as
166 dialogs,
167
168 - The @ref PJSIP_UA module inside <b>PJSIP-CORE</b> manages dialogs, and supports dialog
169 usages,
170
171 - @ref PJSIP_SIMPLE (<b>PJSIP-SIMPLE</b>) provides the base SIP event framework
172 (which uses the common/base dialog framework) and implements presence
173 on top of it, and is also used by call transfer functions,
174
175 - @ref PJSIP_HIGH_UA (<b>PJSIP-UA</b>) is the high level abstraction of INVITE sessions
176 (using the common/base dialog framework). This library also provides
177 SIP client registration and call transfer functionality,
178
179 - and finally, @ref PJSUA_LIB (<b>PJSUA-LIB</b>) is the highest level of abstraction,
180 which wraps together all above functionalities into high level, easy to
181 use API.
182*/
183
184
Benny Prijono1ec70b32006-06-20 15:39:07 +0000185/**
186 @page page_pjsip_samples PJSIP Samples
187
188 I wish I could write more samples, but for now here are some samples or
189 working applications that are available from the source tree:
190
191 - @ref page_pjsip_sample_sipstateless_c\n
192 This is about the simplest SIP application with PJSIP, all it does is
193 respond all incoming requests with 501 (Not Implemented) response
194 statelessly.
195
196 - @ref page_pjsip_sample_simple_ua_c\n
197 This is a very simple SIP User Agent application that only use PJSIP
198 (without PJSIP-UA). It's able to make and receive call, and play
199 media to the sound device.
200
Benny Prijonof77ba882007-01-08 01:20:07 +0000201 - @ref page_pjsip_sample_simple_pjsuaua_c\n
202 Very simple SIP User Agent with registration, call, and media, using
203 PJSUA-API, all in under 200 lines of code.
204
Benny Prijono1ec70b32006-06-20 15:39:07 +0000205 - @ref page_pjsip_samples_pjsua\n
206 This is the reference implementation for PJSIP and PJMEDIA.
207 PJSUA is a console based application, designed to be simple enough
208 to be readble, but powerful enough to demonstrate all features
209 available in PJSIP and PJMEDIA.\n
210 Screenshot on WinXP: \image html pjsua.jpg "pjsua on WinXP"
211
212 - @ref page_pjmedia_samples_siprtp_c\n
213 This is a useful program (integrated with PJSIP) to actively measure
214 the network quality/impairment parameters by making one or more SIP
215 calls (or receiving one or more SIP calls) and display the network
216 impairment of each stream direction at the end of the call.
217 The program is able to measure network quality parameters such as
218 jitter, packet lost/reorder/duplicate, round trip time, etc.\n
219 Note that the remote peer MUST support RTCP so that network quality
220 of each direction can be calculated. Using siprtp for both endpoints
221 is recommended.\n
222 Screenshots on WinXP: \image html siprtp.jpg "siprtp screenshot on WinXP"
223
Benny Prijono5ee1f2e2006-09-22 20:43:00 +0000224 - @ref page_pjsip_perf_c\n
225 This sample contains a complete implementation of a SIP performance
226 measurement tool. Unlike other tool such SIPp, pjsip-perf is geared
227 more towards finding the performance of an endpoint by flooding the
228 endpoint with some requests and time the completion of the requests.\n
229 Screenshots on Linux console: \image html pjsip-perf.jpg "pjsip-perf screenshot on Linux"
Benny Prijono1ec70b32006-06-20 15:39:07 +0000230 */
231
232/**
233 * \page page_pjsip_samples_pjsua PJSUA
234 *
235 * This is the reference implementation for PJSIP and PJMEDIA.
236 * PJSUA is a console based application, designed to be simple enough
237 * to be readble, but powerful enough to demonstrate all features
238 * available in PJSIP and PJMEDIA.
239 *
240 * This file is pjsip-apps/src/pjsua/pjsua_app.c
241 *
242 * Screenshot on WinXP: \image html pjsua.jpg "pjsua on WinXP"
243 *
244 * \includelineno pjsua_app.c
245 */
246
247/**
248 * \page page_pjsip_sample_simple_ua_c Samples: Simple UA
249 *
250 * This is a very simple SIP User Agent application that only use PJSIP
251 * (without PJSIP-UA). It's able to make and receive call, and play
252 * media to the sound device.
253 *
254 * \includelineno simpleua.c
255 */
256
257/**
Benny Prijonof77ba882007-01-08 01:20:07 +0000258 * \page page_pjsip_sample_simple_pjsuaua_c Samples: Simple PJSUA
259 *
260 * Very simple SIP User Agent with registration, call, and media, all
261 * in under 200 lines of code.
262 *
263 * \includelineno simple_pjsua.c
264 */
265
266/**
Benny Prijono1ec70b32006-06-20 15:39:07 +0000267 * \page page_pjsip_sample_sipstateless_c Samples: Stateless SIP Endpoint
268 *
269 * This is about the simplest SIP application with PJSIP, all it does is
270 * respond all incoming requests with 501 (Not Implemented) response
271 * statelessly.
272 *
273 * \includelineno sipstateless.c
274 */
275
276/**
Benny Prijono5ee1f2e2006-09-22 20:43:00 +0000277 * \page page_pjmedia_samples_siprtp_c Samples: siprtp - SIP with RTCP Quality Monitoring
Benny Prijono1ec70b32006-06-20 15:39:07 +0000278 *
279 * This source is an example to demonstrate using SIP and RTP/RTCP framework
280 * to measure the network quality/impairment from the SIP call. This
281 * program can be used to make calls or to receive calls from other
282 * SIP endpoint (or other siprtp program), and to display the media
283 * quality statistics at the end of the call.
284 *
285 * Note that the remote peer must support RTCP.
286 *
287 * The layout of the program has been designed so that custom reporting
288 * can be generated instead of plain human readable text.
289 *
290 * The source code of the file is pjsip-apps/src/samples/siprtp.c
291 *
292 * Screenshots on WinXP: \image html siprtp.jpg
293 *
294 * \includelineno siprtp.c
295 */
296
Benny Prijono5ee1f2e2006-09-22 20:43:00 +0000297/**
298 * \page page_pjsip_perf_c Samples: pjsip-perf - SIP Performance Benchmarking Tool
299 *
300 * This sample contains a complete implementation of a SIP performance
301 * measurement tool. Unlike other tool such SIPp, pjsip-perf is geared
302 * more towards finding the performance of an endpoint by flooding the
303 * endpoint with some requests and time the completion of the requests.
304 *
305 * The source code of the file is pjsip-apps/src/samples/pjsip-perf.c
306 *
307 * Screenshots on Linux console: \image html pjsip-perf.jpg
308 *
309 * \includelineno pjsip-perf.c
310 */
311