From 889725a80d4f27b951352e90688becd9fbaf3f8a Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sun, 2 Jul 2006 12:29:54 +0000 Subject: 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 --- pjmedia/include/pjmedia-codec/types.h | 6 +++--- pjmedia/include/pjmedia/config.h | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) (limited to 'pjmedia/include') 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_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 + + /** * @} -- cgit v1.2.3