summaryrefslogtreecommitdiff
path: root/main/sdp_private.h
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-03-02 16:11:06 -0700
committerGeorge Joseph <gjoseph@digium.com>2017-03-14 12:26:32 -0600
commit8470c2bdea89f1ed89d8a773d775de96ededf3fb (patch)
tree82c15910f51fa05dca89ed75d3528b9e063b0805 /main/sdp_private.h
parent018e01543dd7392fd99873090b1781c05362b3cf (diff)
RFC sdp: Initial SDP creation
* Added additional fields to ast_sdp_options. * Re-organized ast_sdp. * Updated field names to correspond to RFC4566 terminology. * Created allocs/frees for SDP children. * Created getters/setters for SDP children where appropriate. * Added ast_sdp_create_from_state. * Refactored res_sdp_translator_pjmedia for changes. Change-Id: Iefbd877af7f5a4d3c74deead1bff8802661b0d48
Diffstat (limited to 'main/sdp_private.h')
-rw-r--r--main/sdp_private.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/main/sdp_private.h b/main/sdp_private.h
new file mode 100644
index 000000000..45aaebf9a
--- /dev/null
+++ b/main/sdp_private.h
@@ -0,0 +1,55 @@
+/*
+ * Asterisk -- An open source telephony toolkit.
+ *
+ * Copyright (C) 2017, Digium, Inc.
+ *
+ * Mark Michelson <mmichelson@digium.com>
+ *
+ * See http://www.asterisk.org for more information about
+ * the Asterisk project. Please do not directly contact
+ * any of the maintainers of this project for assistance;
+ * the project provides a web site, mailing lists and IRC
+ * channels for your use.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License Version 2. See the LICENSE file
+ * at the top of the source tree.
+ */
+
+#ifndef _MAIN_SDP_PRIVATE_H
+#define _MAIN_SDP_PRIVATE_H
+
+#include "asterisk/stringfields.h"
+#include "asterisk/sdp_options.h"
+
+struct ast_sdp_options {
+ AST_DECLARE_STRING_FIELDS(
+ /*! Optional media address to use in SDP */
+ AST_STRING_FIELD(media_address);
+ /*! SDP origin username */
+ AST_STRING_FIELD(sdpowner);
+ /*! SDP session name */
+ AST_STRING_FIELD(sdpsession);
+ /*! RTP Engine Name */
+ AST_STRING_FIELD(rtp_engine);
+ );
+ struct {
+ unsigned int bind_rtp_to_media_address : 1;
+ unsigned int rtp_symmetric : 1;
+ unsigned int telephone_event : 1;
+ unsigned int rtp_ipv6 : 1;
+ unsigned int g726_non_standard : 1;
+ unsigned int locally_held : 1;
+ };
+ struct {
+ unsigned int tos_audio;
+ unsigned int cos_audio;
+ unsigned int tos_video;
+ unsigned int cos_video;
+ };
+ enum ast_sdp_options_ice ice;
+ enum ast_sdp_options_impl impl;
+ enum ast_sdp_options_encryption encryption;
+};
+
+#endif /* _MAIN_SDP_PRIVATE_H */