Changeset 4458 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
- Timestamp:
- Apr 3, 2013 10:04:18 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r4457 r4458 3754 3754 static pj_status_t modify_sdp_of_call_hold(pjsua_call *call, 3755 3755 pj_pool_t *pool, 3756 pjmedia_sdp_session *sdp) 3756 pjmedia_sdp_session *sdp, 3757 pj_bool_t as_answerer) 3757 3758 { 3758 3759 unsigned mi; … … 3805 3806 pjmedia_sdp_media_remove_all_attr(m, "inactive"); 3806 3807 3807 if (call->media[mi].dir & PJMEDIA_DIR_ENCODING) { 3808 /* When as answerer, just simply set dir to "sendonly", note that 3809 * if the offer uses "sendonly" or "inactive", the SDP negotiator 3810 * will change our answer dir to "inactive". 3811 */ 3812 if (as_answerer || (call->media[mi].dir & PJMEDIA_DIR_ENCODING)) { 3808 3813 /* Add sendonly attribute */ 3809 3814 attr = pjmedia_sdp_attr_create(pool, "sendonly", NULL); … … 3839 3844 } 3840 3845 3841 status = modify_sdp_of_call_hold(call, pool, sdp );3846 status = modify_sdp_of_call_hold(call, pool, sdp, PJ_FALSE); 3842 3847 if (status != PJ_SUCCESS) 3843 3848 return status; … … 3929 3934 /* Check if call is on-hold */ 3930 3935 if (call->local_hold) { 3931 modify_sdp_of_call_hold(call, call->inv->pool_prov, answer );3936 modify_sdp_of_call_hold(call, call->inv->pool_prov, answer, PJ_TRUE); 3932 3937 } 3933 3938
Note: See TracChangeset
for help on using the changeset viewer.