Ignore:
Timestamp:
Mar 15, 2007 10:05:39 PM (13 years ago)
Author:
bennylp
Message:

Fixed ticket #183: Add flag in SDP negotiator to specify codec order preference (thanks Esbjorn Dominique)

File:
1 edited

Legend:

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

    r974 r1072  
    355355 
    356356/** 
     357 * This specifies the behavior of the SDP negotiator when responding to an 
     358 * offer, whether it should rather use the codec preference as set by 
     359 * remote, or should it rather use the codec preference as specified by 
     360 * local endpoint. 
     361 * 
     362 * For example, suppose incoming call has codec order "8 0 3", while  
     363 * local codec order is "3 0 8". If remote codec order is preferable, 
     364 * the selected codec will be 8, while if local codec order is preferable, 
     365 * the selected codec will be 3. 
     366 * 
     367 * By default, the value in PJMEDIA_SDP_NEG_PREFER_REMOTE_CODEC_ORDER will 
     368 * be used. 
     369 * 
     370 * @param neg           The SDP negotiator instance. 
     371 * @param prefer_remote If non-zero, the negotiator will use the codec 
     372 *                      order as specified in remote offer. If zero, it 
     373 *                      will prefer to use the local codec order. 
     374 */ 
     375PJ_DECL(pj_status_t) 
     376pjmedia_sdp_neg_set_prefer_remote_codec_order(pjmedia_sdp_neg *neg, 
     377                                              pj_bool_t prefer_remote); 
     378 
     379 
     380/** 
    357381 * Get SDP negotiator state. 
    358382 * 
Note: See TracChangeset for help on using the changeset viewer.