Ignore:
Timestamp:
Aug 12, 2016 3:47:26 AM (8 years ago)
Author:
ming
Message:

Fixed #1951: Add callback to configure SRTP setting and key in pjsua/pjsua2

File:
1 edited

Legend:

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

    r5410 r5417  
    13671367 
    13681368    /** 
     1369     * This callback is called when SRTP media transport is created. 
     1370     * Application can modify the SRTP setting \a srtp_opt to specify 
     1371     * the cryptos and keys which are going to be used. Note that 
     1372     * application should not modify the field 
     1373     * \a pjmedia_srtp_setting.close_member_tp and can only modify 
     1374     * the field \a pjmedia_srtp_setting.use for initial INVITE. 
     1375     * 
     1376     * @param call_id       Call ID 
     1377     * @param media_idx     The media index in the SDP for which this SRTP 
     1378     *                      media transport will be used. 
     1379     * @param srtp_opt      The SRTP setting. Application can modify this. 
     1380     */ 
     1381    void (*on_create_media_transport_srtp)(pjsua_call_id call_id, 
     1382                                           unsigned media_idx, 
     1383                                           pjmedia_srtp_setting *srtp_opt); 
     1384 
     1385    /** 
    13691386     * This callback can be used by application to override the account 
    13701387     * to be used to handle an incoming message. Initially, the account to 
Note: See TracChangeset for help on using the changeset viewer.