Commit d2de1de9 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

soa_tag.h, soa_tag.c: added SOATAG_AUDIO_AUX().

darcs-hash:20060905210310-65a35-ae6429a6622b4142a83b561eda236ddf53cd435b.gz
parent 532899a9
...@@ -235,7 +235,7 @@ tag_typedef_t soatag_af = INTTAG_TYPEDEF(af); ...@@ -235,7 +235,7 @@ tag_typedef_t soatag_af = INTTAG_TYPEDEF(af);
* IPv4 address, or IPv6 address. * IPv4 address, or IPv6 address.
* *
* Corresponding tag taking reference parameter is SOATAG_ADDRESS_REF() * Corresponding tag taking reference parameter is SOATAG_ADDRESS_REF()
*/ */
tag_typedef_t soatag_address = STRTAG_TYPEDEF(address); tag_typedef_t soatag_address = STRTAG_TYPEDEF(address);
...@@ -266,17 +266,47 @@ tag_typedef_t soatag_address = STRTAG_TYPEDEF(address); ...@@ -266,17 +266,47 @@ tag_typedef_t soatag_address = STRTAG_TYPEDEF(address);
* line is rejected, too, unless SOATAG_RTP_MISMATCH(1) has been used. * line is rejected, too, unless SOATAG_RTP_MISMATCH(1) has been used.
* *
* Corresponding tag taking a reference parameter is SOATAG_RTP_SELECT_REF() * Corresponding tag taking a reference parameter is SOATAG_RTP_SELECT_REF()
*/ */
tag_typedef_t soatag_rtp_select = UINTTAG_TYPEDEF(rtp_select); tag_typedef_t soatag_rtp_select = UINTTAG_TYPEDEF(rtp_select);
/**@def SOATAG_AUDIO_AUX(x)
*
* The named audio codecs are considered auxiliary, that is, they are
* considered as common codec only when they are the only codec listed on
* the media line.
*
* When generating answer or second offer soa includes auxiliary audio codecs in
* the list of codecs even if it is selecting only one codec or common
* codecs.
*
* @par Used with
* nua_set_params() \n
* nua_get_params() \n
* nua_invite() \n
* nua_update() \n
* nua_respond() \n
*
* @par Parameter type
* A string with whitespace separated list of codec names.
*
* @par Values
* E.g., "telephone-event cn".
*
* By default, there are no auxiliary audio codecs.
*
* Corresponding tag taking a reference parameter is
* SOATAG_AUDIO_AUX_REF()
*/
tag_typedef_t soatag_audio_aux = STRTAG_TYPEDEF(audio_aux);
/**@def SOATAG_RTP_SORT(x) /**@def SOATAG_RTP_SORT(x)
* *
* When selecting the common codecs, soa can either select first local codec * When selecting the common codecs, soa can either select first local codec
* supported by remote end, or first remote codec supported by local codecs. * supported by remote end, or first remote codec supported by local codecs.
* The preference is indicated with ordering: the preferred codec is * The preference is indicated with ordering: the preferred codec is
* first and so on. * first and so on.
*
* @par Used with * @par Used with
* nua_set_params() \n * nua_set_params() \n
* nua_get_params() \n * nua_get_params() \n
......
...@@ -164,6 +164,11 @@ SOFIAPUBVAR tag_typedef_t soatag_rtp_select_ref; ...@@ -164,6 +164,11 @@ SOFIAPUBVAR tag_typedef_t soatag_rtp_select_ref;
enum { SOA_RTP_SELECT_SINGLE, SOA_RTP_SELECT_COMMON, SOA_RTP_SELECT_ALL }; enum { SOA_RTP_SELECT_SINGLE, SOA_RTP_SELECT_COMMON, SOA_RTP_SELECT_ALL };
#define SOATAG_AUDIO_AUX(x) soatag_audio_aux, tag_str_v(x)
SOFIAPUBVAR tag_typedef_t soatag_audio_aux;
#define SOATAG_AUDIO_AUX_REF(x) soatag_audio_aux_ref, tag_str_vr(&(x))
SOFIAPUBVAR tag_typedef_t soatag_audio_aux_ref;
#define SOATAG_RTP_SORT(x) soatag_rtp_sort, tag_uint_v(x) #define SOATAG_RTP_SORT(x) soatag_rtp_sort, tag_uint_v(x)
SOFIAPUBVAR tag_typedef_t soatag_rtp_sort; SOFIAPUBVAR tag_typedef_t soatag_rtp_sort;
#define SOATAG_RTP_SORT_REF(x) soatag_rtp_sort_ref, tag_uint_vr(&(x)) #define SOATAG_RTP_SORT_REF(x) soatag_rtp_sort_ref, tag_uint_vr(&(x))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment