Ignore:
Timestamp:
Jun 3, 2010 10:41:32 AM (14 years ago)
Author:
nanang
Message:

Re #1089:

  • Added a feature in dialog to store and retrieve remote capabilities dug from the remote messages.
  • Added few APIs in dialog to query and update remote capabilities, also added an API in pjsua_call to query whether a capability is supported by remote.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r3172 r3196  
    28212821                                         pjsua_call_info *info); 
    28222822 
     2823/** 
     2824 * Check if remote peer support the specified capability. 
     2825 * 
     2826 * @param call_id       Call identification. 
     2827 * @param htype         The header type to be checked, which value may be: 
     2828 *                      - PJSIP_H_ACCEPT 
     2829 *                      - PJSIP_H_ALLOW 
     2830 *                      - PJSIP_H_SUPPORTED 
     2831 * @param hname         If htype specifies PJSIP_H_OTHER, then the header 
     2832 *                      name must be supplied in this argument. Otherwise the  
     2833 *                      value must be set to NULL. 
     2834 * @param token         The capability token to check. For example, if \a  
     2835 *                      htype is PJSIP_H_ALLOW, then \a token specifies the  
     2836 *                      method names; if \a htype is PJSIP_H_SUPPORTED, then 
     2837 *                      \a token specifies the extension names such as 
     2838 *                       "100rel". 
     2839 * 
     2840 * @return              PJSIP_DIALOG_CAP_SUPPORTED if the specified capability 
     2841 *                      is explicitly supported, see @pjsip_dialog_cap_status 
     2842 *                      for more info. 
     2843 */ 
     2844PJ_DECL(pjsip_dialog_cap_status) pjsua_call_remote_has_cap( 
     2845                                                    pjsua_call_id call_id, 
     2846                                                    int htype, 
     2847                                                    const pj_str_t *hname, 
     2848                                                    const pj_str_t *token); 
    28232849 
    28242850/** 
Note: See TracChangeset for help on using the changeset viewer.