Wed Jan 8 2020 09:49:48

Asterisk developer's documentation


jingle.h
Go to the documentation of this file.
1 /*
2  * Asterisk -- An open source telephony toolkit.
3  *
4  * Copyright (C) 1999 - 2005, Digium, Inc.
5  *
6  * Matt O'Gorman <mogorman@digium.com>
7  *
8  * See http://www.asterisk.org for more information about
9  * the Asterisk project. Please do not directly contact
10  * any of the maintainers of this project for assistance;
11  * the project provides a web site, mailing lists and IRC
12  * channels for your use.
13  *
14  * This program is free software, distributed under the terms of
15  * the GNU General Public License Version 2. See the LICENSE file
16  * at the top of the source tree.
17  */
18 
19 /*! \file
20  * \brief Jingle definitions for chan_jingle
21  *
22  * \ref chan_jingle.c
23  *
24  * \author Matt O'Gorman <mogorman@digium.com>
25  */
26 
27 
28 #ifndef _ASTERISK_JINGLE_H
29 #define _ASTERISK_JINGLE_H
30 
31 #include <iksemel.h>
32 #include "asterisk/astobj.h"
33 
34 
35 /* Jingle Constants */
36 
37 #define JINGLE_NODE "jingle"
38 #define GOOGLE_NODE "session"
39 
40 #define JINGLE_NS "urn:xmpp:tmp:jingle"
41 #define JINGLE_AUDIO_RTP_NS "urn:xmpp:tmp:jingle:apps:audio-rtp"
42 #define JINGLE_VIDEO_RTP_NS "urn:xmpp:tmp:jingle:apps:video"
43 #define JINGLE_ICE_UDP_NS "urn:xmpp:tmp:jingle:transports:ice-udp"
44 #define JINGLE_DTMF_NS "urn:xmpp:tmp:jingle:dtmf"
45 
46 #define GOOGLE_NS "http://www.google.com/session"
47 #define GOOGLE_JINGLE_NS "urn:xmpp:jingle:1"
48 #define GOOGLE_AUDIO_NS "http://www.google.com/session/phone"
49 #define GOOGLE_VIDEO_NS "http://www.google.com/session/video"
50 #define GOOGLE_TRANSPORT_NS "http://www.google.com/transport/p2p"
51 
52 #define JINGLE_SID "sid"
53 #define GOOGLE_SID "id"
54 
55 #define JINGLE_INITIATE "session-initiate"
56 
57 #define JINGLE_ACCEPT "session-accept"
58 #define GOOGLE_ACCEPT "accept"
59 
60 #define JINGLE_NEGOTIATE "transport-info"
61 #define GOOGLE_NEGOTIATE "candidates"
62 
63 #define JINGLE_INFO "session-info"
64 #define JINGLE_TERMINATE "session-terminate"
65 
66 #endif
A set of macros implementing objects and containers. Macros are used for maximum performance, to support multiple inheritance, and to be easily integrated into existing structures without additional malloc calls, etc.