| 1 | /* |
| 2 | * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com) |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; either version 2 of the License, or |
| 7 | * (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 17 | */ |
| 18 | |
| 19 | |
| 20 | /** |
| 21 | @addtogroup samples_page |
| 22 | |
| 23 | Several samples that are included in the PJSIP distributions. The screenshots |
| 24 | below were taken on a Windows machine, but the library is very portable and |
| 25 | it is known to run on platforms such as Linux, MacOS X, Windows Mobile, |
| 26 | Symbian, and so on. |
| 27 | |
| 28 | - ICE demo sample: \src{pjsip-apps/src/samples/icedemo.c} <br />\n |
| 29 | This sample demonstrates how to use \ref PJNATH_ICE_STREAM_TRANSPORT |
| 30 | <b>without</b> using signaling protocol such as <b>SIP</b>. It provides |
| 31 | interactive user interface to create and manage the ICE sessions as well |
| 32 | as to exchange SDP with another ICE demo instance.\n\n |
| 33 | \img{pjnath/docs/ice_demo.jpg,ice_demo on WinXP} |
| 34 | |
| 35 | - TURN client sample: \srcdir{pjnath/src/pjturn-client/} <br />\n |
| 36 | This sample demonstrates how to use \ref PJNATH_TURN_SOCK |
| 37 | and also \ref PJNATH_STUN_SOCK. It provides interactive |
| 38 | user interface to manage allocation, permissions, and |
| 39 | channel bindings.\n\n |
| 40 | \img{pjnath/docs/pjturn_client.jpg,pjturn_client on WinXP} |
| 41 | |
| 42 | - TURN server sample: \srcdir{pjnath/src/pjturn-srv/} <br />\n |
| 43 | This is a simple sample TURN server application, which |
| 44 | we mainly use for testing (as back then there is no TURN |
| 45 | server available).\n |
| 46 | |
| 47 | */ |
| 48 | |
| 49 | |
| 50 | /** |
| 51 | \page turn_client_sample pjturn-client, a sample TURN client |
| 52 | |
| 53 | This is a simple, interactive TURN client application, with the |
| 54 | following features: |
| 55 | - DNS SRV resolution |
| 56 | - TCP connection to TURN server |
| 57 | - Optional fingerprint |
| 58 | |
| 59 | This file is pjnath/src/pjturn-client/client_main.c. |
| 60 | |
| 61 | Screenshot on WinXP: \image html pjturn_client.jpg "pjturn_client on WinXP" |
| 62 | |
| 63 | \includelineno client_main.c. |
| 64 | */ |
| 65 | |
| 66 | |
| 67 | /** |
| 68 | \page ice_demo_sample ice_demo, an interactive ICE endpoint |
| 69 | |
| 70 | This sample demonstrates how to use \ref PJNATH_ICE_STREAM_TRANSPORT |
| 71 | <b>without</b> using signaling protocol such as SIP. It provides |
| 72 | interactive user interface to create and manage the ICE sessions as well |
| 73 | as to exchange SDP with another ice_demo instance. |
| 74 | |
| 75 | Features of the demo application: |
| 76 | - supports host, STUN, and TURN candidates |
| 77 | - disabling of host candidates |
| 78 | - DNS SRV resolution for STUN and TURN servers |
| 79 | - TCP connection to TURN server |
| 80 | - Optional use of fingerprint for TURN |
| 81 | - prints and parse SDP containing ICE infos |
| 82 | - exchange SDP with copy/paste |
| 83 | |
| 84 | This file is pjsip-apps/src/samples/icedemo.c |
| 85 | |
| 86 | Screenshot on WinXP: \image html ice_demo.jpg "ice_demo on WinXP" |
| 87 | |
| 88 | \includelineno icedemo.c. |
| 89 | */ |
| 90 |