📄 soa_tag.c
字号:
/**@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 * soa_set_params(), soa_get_params(), soa_get_paramlist() \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(). * * @since New in @VERSION_1_12_2. * * @sa SOATAG_RTP_SELECT(), SOATAG_RTP_MISMATCH(), SOATAG_RTP_SORT() */tag_typedef_t soatag_audio_aux = STRTAG_TYPEDEF(audio_aux);/**@def SOATAG_RTP_SORT(x) * * When selecting the common codecs, soa can either select first local codec * supported by remote end, or first remote codec supported by local codecs. * The preference is indicated with ordering: the preferred codec is * first and so on. * * The auxiliary audio codecs (specified with SOATAG_AUDIO_AUX()) are listed * after other codecs. * * @par Used with * soa_set_params(), soa_get_params(), soa_get_paramlist() \n * * @par Parameter type * enum { * #SOA_RTP_SORT_DEFAULT, #SOA_RTP_SORT_LOCAL, #SOA_RTP_SORT_REMOTE * } \n * (int in range 0..2) * * @par Values * - #SOA_RTP_SORT_DEFAULT (0) - select by local preference * if media is recvonly, remote preference othewise * - #SOA_RTP_SORT_LOCAL (1) - always select by local preference * - #SOA_RTP_SORT_REMOTE (2) - always select by remote preference * * The default value is #SOA_RTP_SORT_DEFAULT (0). * * Corresponding tag taking reference parameter is SOATAG_RTP_SORT_REF() * * @sa SOATAG_RTP_SELECT(), SOATAG_RTP_MISMATCH(), SOATAG_AUDIO_AUX()*/tag_typedef_t soatag_rtp_sort = INTTAG_TYPEDEF(rtp_sort);/**@def SOATAG_RTP_MISMATCH(x) * * Accept media line even if the SDP negotation code determines that there * are no common codecs between local and remote media. Normally, if the soa * determines there are no common codecs, the media line is rejected. * * @par Used with * soa_set_params(), soa_get_params(), soa_get_paramlist() \n * * @par Parameter type * Boolean (int) * * @par Values * 0 - reject media if there are no common codecs \n * 1 (!= 0) - accept media even if there are no common codecs \n * * Default value is 0. * * Corresponding tag taking reference parameter is SOATAG_RTP_MISMATCH_REF() * * @sa SOATAG_RTP_SELECT(), SOATAG_RTP_MISMATCH(), SOATAG_AUDIO_AUX() */tag_typedef_t soatag_rtp_mismatch = BOOLTAG_TYPEDEF(rtp_mismatch);/**@def SOATAG_ACTIVE_AUDIO(x) * * Audio session status. * * @par Used with * * @par Parameter type * enum { #SOA_ACTIVE_DISABLED, #SOA_ACTIVE_REJECTED, * #SOA_ACTIVE_INACTIVE, #SOA_ACTIVE_SENDONLY, * #SOA_ACTIVE_RECVONLY, #SOA_ACTIVE_SENDRECV } * * @par Values * - #SOA_ACTIVE_REJECTED (-8) * - #SOA_ACTIVE_INACTIVE (0) * - #SOA_ACTIVE_SENDONLY (1) * - #SOA_ACTIVE_RECVONLY (2) * - #SOA_ACTIVE_SENDRECV (3) * * Corresponding tag taking reference parameter is SOATAG_ACTIVE_AUDIO_REF() * */tag_typedef_t soatag_active_audio = INTTAG_TYPEDEF(active_audio);/**@def SOATAG_ACTIVE_VIDEO(x) * * Video session status * * @par Used with * * @par Parameter type * enum { #SOA_ACTIVE_DISABLED, #SOA_ACTIVE_REJECTED, * #SOA_ACTIVE_INACTIVE, #SOA_ACTIVE_SENDONLY, * #SOA_ACTIVE_RECVONLY, #SOA_ACTIVE_SENDRECV } * * @par Values * - #SOA_ACTIVE_REJECTED (-8) * - #SOA_ACTIVE_INACTIVE (0) * - #SOA_ACTIVE_SENDONLY (1) * - #SOA_ACTIVE_RECVONLY (2) * - #SOA_ACTIVE_SENDRECV (3) * * Corresponding tag taking reference parameter is SOATAG_ACTIVE_VIDEO_REF() */tag_typedef_t soatag_active_video = INTTAG_TYPEDEF(active_video);/**@def SOATAG_ACTIVE_IMAGE(x) * * Active image session status * * @par Used with * #nua_i_active \n * #nua_i_state \n * * @par Parameter type * enum { #SOA_ACTIVE_DISABLED, #SOA_ACTIVE_REJECTED, * #SOA_ACTIVE_INACTIVE, #SOA_ACTIVE_SENDONLY, * #SOA_ACTIVE_RECVONLY, #SOA_ACTIVE_SENDRECV } * * @par Values * - #SOA_ACTIVE_REJECTED (-8) * - #SOA_ACTIVE_INACTIVE (0) * - #SOA_ACTIVE_SENDONLY (1) * - #SOA_ACTIVE_RECVONLY (2) * - #SOA_ACTIVE_SENDRECV (3) * * @par Parameter type * enum { #SOA_ACTIVE_DISABLED, #SOA_ACTIVE_REJECTED, * #SOA_ACTIVE_INACTIVE, #SOA_ACTIVE_SENDONLY, * #SOA_ACTIVE_RECVONLY, #SOA_ACTIVE_SENDRECV } * * @par Values * - #SOA_ACTIVE_REJECTED (-8) * - #SOA_ACTIVE_INACTIVE (0) * - #SOA_ACTIVE_SENDONLY (1) * - #SOA_ACTIVE_RECVONLY (2) * - #SOA_ACTIVE_SENDRECV (3) * * Corresponding tag taking reference parameter is SOATAG_ACTIVE_IMAGE_REF() */tag_typedef_t soatag_active_image = INTTAG_TYPEDEF(active_image);/**@def SOATAG_ACTIVE_CHAT(x) * * Active chat session status. * * @par Used with * #nua_i_active \n * #nua_i_state \n * * @par Parameter type * enum { #SOA_ACTIVE_DISABLED, #SOA_ACTIVE_REJECTED, * #SOA_ACTIVE_INACTIVE, #SOA_ACTIVE_SENDONLY, * #SOA_ACTIVE_RECVONLY, #SOA_ACTIVE_SENDRECV } * * @par Values * - #SOA_ACTIVE_REJECTED (-8) * - #SOA_ACTIVE_INACTIVE (0) * - #SOA_ACTIVE_SENDONLY (1) * - #SOA_ACTIVE_RECVONLY (2) * - #SOA_ACTIVE_SENDRECV (3) * * Corresponding tag taking reference parameter is SOATAG_ACTIVE_CHAT_REF() */tag_typedef_t soatag_active_chat = INTTAG_TYPEDEF(active_chat);/**@def SOATAG_SRTP_ENABLE(x) * * Enable SRTP * * @par Used with * soa_set_params(), soa_get_params(), soa_get_paramlist() \n * * @par Parameter type * boolean (int) * * @par Values * @c !=0 enable \n * @c 0 disable * * Corresponding tag taking reference parameter is * SOATAG_SRTP_ENABLE_REF() * * @todo SRTP functionality is not implemented. */tag_typedef_t soatag_srtp_enable = BOOLTAG_TYPEDEF(srtp_enable);/**@def SOATAG_SRTP_CONFIDENTIALITY(x) * * Enable SRTP confidentiality negotiation. * * @par Used with * soa_set_params(), soa_get_params(), soa_get_paramlist() \n * * @par Parameter type * boolean (int) * * @par Values * @c != 0 enable SRTP confidentiality \n * @c 0 disable SRTP conidentiality * * Corresponding tag taking reference parameter is * SOATAG_SRTP_CONFIDENTIALITY_REF() * * @todo SRTP functionality is not implemented. */tag_typedef_t soatag_srtp_confidentiality = BOOLTAG_TYPEDEF(srtp_confidentiality);/**@def SOATAG_SRTP_INTEGRITY(x) * * Enable SRTP integrity protection * * @par Used with * soa_set_params(), soa_get_params(), soa_get_paramlist() \n * * @par Parameter type * boolean (int) * * @par Values * @c !=0 enable \n * @c 0 disable * * Corresponding tag taking reference parameter is * SOATAG_SRTP_INTEGRITY_REF() * * @todo SRTP functionality is not implemented. */tag_typedef_t soatag_srtp_integrity = BOOLTAG_TYPEDEF(srtp_integrity);/**@def SOATAG_HOLD(x) * * Hold media stream or streams. * * The hold media stream will have the attribute a=sendonly (meaning that * some hold announcements or pause music is sent to the held party but that * the held party should not generate any media) or a=inactive (meaning that * no media is sent). * * When putting a SIP session on hold with sendonly, the application can * include, e.g., SOATAG_HOLD("audio") or SOATAG_HOLD("video") or * SOATAG_HOLD("audio, video") or SOATAG_HOLD("*") as @soa parameters. When * using inactive instead, the application should use "#" or * "audio=inactive" instead. When resuming the session, application should * include the tag SOATAG_HOLD(NULL). * * Note that last SOATAG_HOLD() in the tag list will override the * SOATAG_HOLD() tags before it. * * @par Used with * soa_set_params(), soa_get_params(), soa_get_paramlist() \n * * @par Parameter type * character string * * @par Values * Comma-separated media name ("audio", "video") or wildcard ("*"). * * Corresponding tag taking reference parameter is SOATAG_HOLD_REF() * * @sa soa_set_params(), nua_invite(), @ref nua_event_diagram_call_hold */tag_typedef_t soatag_hold = STRTAG_TYPEDEF(hold);/**@def SOATAG_ORDERED_USER(x) * * Take account strict ordering of user SDP m=lines. If user SDP has been * updated, the new media lines replace old ones even if the media type has * been changed. This allows the application to replace @b m=audio with * @b m=image/t38, for instance. * * @par Used with * soa_set_params(), soa_get_params(), soa_get_paramlist() \n * * @par Parameter type * boolean * * @par Values * - false (0) - update session with user SDP based on media type * - true (1) - update session with m= line in user SDP based on their order * * The default value is false and session are updated based on media types. * * * Corresponding tag taking a reference parameter is SOATAG_RTP_SELECT_REF(). * * @sa @RFC3264 section 8.3.3, T.38 * * @NEW_1_12_7. */tag_typedef_t soatag_ordered_user = BOOLTAG_TYPEDEF(ordered_user);tag_typedef_t soatag_reuse_rejected = BOOLTAG_TYPEDEF(reuse_rejected);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -