Ignore:
Timestamp:
Feb 7, 2006 12:34:11 PM (18 years ago)
Author:
bennylp
Message:

Initial implementation of invite session abstraction, and updated pjsua for the new framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_msg.h

    r127 r139  
    18221822 */ 
    18231823 
     1824 
     1825/////////////////////////////////////////////////////////////////////////////// 
     1826/** 
     1827 * @defgroup PJSIP_MSG_HDR_WARNING Header Field: Warning 
     1828 * @brief Warning header field. 
     1829 * @ingroup PJSIP_MSG 
     1830 * @{ 
     1831 */ 
     1832/** 
     1833 * SIP Warning header. 
     1834 * In this version, Warning header is just a typedef for generic string  
     1835 * header. 
     1836 */ 
     1837typedef pjsip_generic_string_hdr pjsip_warning_hdr; 
     1838 
     1839/** 
     1840 * Create a warning header with the specified contents. 
     1841 * 
     1842 * @param pool      Pool to allocate memory from. 
     1843 * @param code      Warning code, 300-399. 
     1844 * @param host      The host portion of the Warning header. 
     1845 * @param text      The warning text, which MUST not be quoted with 
     1846 *                  double quote. 
     1847 * 
     1848 * @return          The Warning header field. 
     1849 */ 
     1850PJ_DECL(pjsip_warning_hdr*) pjsip_warning_hdr_create( pj_pool_t *pool, 
     1851                                                      int code, 
     1852                                                      const pj_str_t *host, 
     1853                                                      const pj_str_t *text); 
     1854 
     1855/** 
     1856 * Create a warning header and initialize the contents from the error 
     1857 * message for the specified status code. The warning code will be 
     1858 * set to 399. 
     1859 * 
     1860 * @param pool      Pool to allocate memory from. 
     1861 * @param host      The host portion of the Warning header. 
     1862 * @param status    The error status code, which error text will be 
     1863 *                  put in as the Warning text. 
     1864 * 
     1865 * @return          The Warning header field. 
     1866 */ 
     1867PJ_DECL(pjsip_warning_hdr*)  
     1868pjsip_warning_hdr_create_from_status( pj_pool_t *pool, 
     1869                                      const pj_str_t *host, 
     1870                                      pj_status_t status); 
     1871 
     1872/** 
     1873 * @} 
     1874 */ 
     1875 
    18241876/** 
    18251877 * @bug Once a header is put in the message, the header CAN NOT be put in 
     
    19542006#define pjsip_user_agent_hdr_create pjsip_generic_string_hdr_create 
    19552007 
    1956 /** Warning header. */ 
    1957 typedef pjsip_generic_string_hdr pjsip_warning_hdr; 
    1958  
    1959 /** Create Warning header. */ 
    1960 #define pjsip_warning_hdr_create pjsip_generic_string_hdr_create 
    19612008 
    19622009/** 
Note: See TracChangeset for help on using the changeset viewer.