From 9944702e692e3dc8ab6afb53c78c1e66da6bff9f Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Fri, 27 Jan 2012 09:12:59 +0000 Subject: Re #1244: Added bandwidth info in SDP ("b=" lines) based on codec bitrate settings. Two SDP bandwidth types/modifiers are used: AS in session level & TIAS in media level. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3945 74dad513-b988-da41-8d7b-12977e46ad98 --- pjmedia/include/pjmedia/errno.h | 5 +++++ pjmedia/include/pjmedia/sdp.h | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'pjmedia/include') diff --git a/pjmedia/include/pjmedia/errno.h b/pjmedia/include/pjmedia/errno.h index 3c27e35f..063e5437 100644 --- a/pjmedia/include/pjmedia/errno.h +++ b/pjmedia/include/pjmedia/errno.h @@ -171,6 +171,11 @@ PJ_BEGIN_DECL * Invalid SDP media transport protocol. */ #define PJMEDIA_SDP_EINPROTO (PJMEDIA_ERRNO_START+36) /* 220036 */ +/** + * @hideinitializer + * Invalid SDP bandwidth info (b=) line. + */ +#define PJMEDIA_SDP_EINBANDW (PJMEDIA_ERRNO_START+37) /* 220037 */ /************************************************************ diff --git a/pjmedia/include/pjmedia/sdp.h b/pjmedia/include/pjmedia/sdp.h index cd89b847..c3f67823 100644 --- a/pjmedia/include/pjmedia/sdp.h +++ b/pjmedia/include/pjmedia/sdp.h @@ -614,8 +614,11 @@ struct pjmedia_sdp_session pj_str_t addr; /**< The address. */ } origin; - pj_str_t name; /**< Subject line (s=) */ - pjmedia_sdp_conn *conn; /**< Connection line (c=) */ + pj_str_t name; /**< Subject line (s=) */ + pjmedia_sdp_conn *conn; /**< Connection line (c=) */ + unsigned bandw_count; /**< Number of bandwidth info (b=) */ + pjmedia_sdp_bandw *bandw[PJMEDIA_MAX_SDP_BANDW]; + /**< Bandwidth info array (b=) */ /** Session time (t= line) */ struct -- cgit v1.2.3