Ignore:
Timestamp:
Aug 1, 2010 9:48:51 AM (13 years ago)
Author:
bennylp
Message:

Implemented core multipart support and support in the invite session (re #1070)

  • incoming multipart message will be handled automatically
  • for testing, enable HAVE_MULTIPART_TEST in pjsua_app.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip-ua/sip_inv.h

    r3222 r3243  
    383383 
    384384/** 
     385 * This structure represents SDP information in a pjsip_rx_data. Application 
     386 * retrieve this information by calling #pjsip_rdata_get_sdp_info(). This 
     387 * mechanism supports multipart message body. 
     388 */ 
     389typedef struct pjsip_rdata_sdp_info 
     390{ 
     391    /** 
     392     * Pointer and length of the text body in the incoming message. If 
     393     * the pointer is NULL, it means the message does not contain SDP 
     394     * body. 
     395     */ 
     396    pj_str_t             body; 
     397 
     398    /** 
     399     * This will contain non-zero if an invalid SDP body is found in the 
     400     * message. 
     401     */ 
     402    pj_status_t          sdp_err; 
     403 
     404    /** 
     405     * A parsed and validated SDP body. 
     406     */ 
     407    pjmedia_sdp_session *sdp; 
     408 
     409} pjsip_rdata_sdp_info; 
     410 
     411 
     412/** 
    385413 * Initialize the invite usage module and register it to the endpoint.  
    386414 * The callback argument contains pointer to functions to be called on  
     
    875903                                           pjsip_msg_body **p_body); 
    876904 
     905/** 
     906 * Retrieve SDP information from an incoming message. Application should 
     907 * prefer to use this function rather than parsing the SDP manually since 
     908 * this function supports multipart message body. 
     909 * 
     910 * This function will only parse the SDP once, the first time it is called 
     911 * on the same message. Subsequent call on the same message will just pick 
     912 * up the already parsed SDP from the message. 
     913 * 
     914 * @param rdata         The incoming message. 
     915 * 
     916 * @return              The SDP info. 
     917 */ 
     918PJ_DECL(pjsip_rdata_sdp_info*) pjsip_rdata_get_sdp_info(pjsip_rx_data *rdata); 
     919 
    877920 
    878921PJ_END_DECL 
Note: See TracChangeset for help on using the changeset viewer.