Ignore:
Timestamp:
Feb 21, 2008 10:08:27 AM (16 years ago)
Author:
bennylp
Message:

Ticket #467: fixed issues with RTP/AVP vs RTP/SAVP negotiation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/transport.h

    r1763 r1810  
    213213typedef struct pjmedia_transport pjmedia_transport; 
    214214 
     215/** 
     216 * This enumeration specifies the general behaviour of media processing 
     217 */ 
     218typedef enum pjmedia_tranport_media_option 
     219{ 
     220    /** 
     221     * When this flag is specified, the transport will not perform media 
     222     * transport validation, this is useful when transport is stacked with 
     223     * other transport, for example when transport UDP is stacked under 
     224     * transport SRTP, media transport validation only need to be done by  
     225     * transport SRTP. 
     226     */ 
     227    PJMEDIA_TPMED_NO_TRANSPORT_CHECKING = 1 
     228 
     229} pjmedia_tranport_media_option; 
    215230 
    216231/** 
     
    293308    pj_status_t (*media_create)(pjmedia_transport *tp, 
    294309                                pj_pool_t *pool, 
     310                                unsigned options, 
    295311                                pjmedia_sdp_session *sdp_local, 
    296312                                const pjmedia_sdp_session *sdp_remote, 
     
    509525 * @param tp            The media transport. 
    510526 * @param pool          The memory pool. 
     527 * @param option        Option flags, from #pjmedia_tranport_media_option 
    511528 * @param sdp_local     Local SDP. 
    512529 * @param sdp_remote    Remote SDP. 
     
    517534PJ_INLINE(pj_status_t) pjmedia_transport_media_create(pjmedia_transport *tp, 
    518535                                    pj_pool_t *pool, 
     536                                    unsigned options, 
    519537                                    pjmedia_sdp_session *sdp_local, 
    520538                                    const pjmedia_sdp_session *sdp_remote, 
    521539                                    unsigned media_index) 
    522540{ 
    523     return (*tp->op->media_create)(tp, pool, sdp_local, sdp_remote,  
     541    return (*tp->op->media_create)(tp, pool, options, sdp_local, sdp_remote,  
    524542                                   media_index); 
    525543} 
     
    541559 * @param tp            The media transport. 
    542560 * @param pool          The memory pool. 
     561 * @param option        The media transport option. 
    543562 * @param sdp_local     Local SDP. 
    544563 * @param sdp_remote    Remote SDP. 
Note: See TracChangeset for help on using the changeset viewer.