summaryrefslogtreecommitdiff
path: root/pjmedia/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-07-02 12:29:54 +0000
committerBenny Prijono <bennylp@teluu.com>2006-07-02 12:29:54 +0000
commit889725a80d4f27b951352e90688becd9fbaf3f8a (patch)
tree517d8d1197db001cae4a99bbaa8aaf330e878f42 /pjmedia/include
parentcb5e2e6455660972ad9fb32b9b2b13282637c104 (diff)
Miscellaneous bug fix and improvements in PJMEDIA: (1) more stricker SDP parsing and validation, (2) fixed bug in RTCP attribute generation in SDP, (3) configurable telephone-event payload type
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@571 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include')
-rw-r--r--pjmedia/include/pjmedia-codec/types.h6
-rw-r--r--pjmedia/include/pjmedia/config.h23
2 files changed, 26 insertions, 3 deletions
diff --git a/pjmedia/include/pjmedia-codec/types.h b/pjmedia/include/pjmedia-codec/types.h
index c115a830..e28c9f38 100644
--- a/pjmedia/include/pjmedia-codec/types.h
+++ b/pjmedia/include/pjmedia-codec/types.h
@@ -29,10 +29,10 @@
*/
enum
{
- /* Telephone events must have pt=101, or otherwise some code needs
- * to be updated (this would not affect outgoing pt).
+ /* PJMEDIA_RTP_PT_TELEPHONE_EVENTS is declared in
+ * <pjmedia/config.h>
*/
- PJMEDIA_RTP_PT_TELEPHONE_EVENTS = 101, /**< telephone-events */
+ PJMEDIA_RTP_PT_START = PJMEDIA_RTP_PT_TELEPHONE_EVENTS,
PJMEDIA_RTP_PT_SPEEX_NB, /**< Speex narrowband/8KHz */
PJMEDIA_RTP_PT_SPEEX_WB, /**< Speex wideband/16KHz */
diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h
index f4bfeae4..f97fb79f 100644
--- a/pjmedia/include/pjmedia/config.h
+++ b/pjmedia/include/pjmedia/config.h
@@ -163,6 +163,29 @@
#endif
+/**
+ * This macro declares the payload type for telephone-event
+ * that is advertised by PJMEDIA for outgoing SDP. If this macro
+ * is set to zero, telephone events would not be advertised nor
+ * supported.
+ *
+ * If this value is changed to other number, please update the
+ * PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR too.
+ */
+#ifndef PJMEDIA_RTP_PT_TELEPHONE_EVENTS
+# define PJMEDIA_RTP_PT_TELEPHONE_EVENTS 101
+#endif
+
+
+/**
+ * Macro to get the string representation of the telephone-event
+ * payload type.
+ */
+#ifndef PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR
+# define PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR "101"
+#endif
+
+
/**
* @}