Changeset 5914
- Timestamp:
- Nov 22, 2018 10:11:25 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r5878 r5914 3153 3153 pjmedia_transport_info tp_info; 3154 3154 pjmedia_srtp_info *srtp_info; 3155 3156 /* Call media direction */ 3157 call_med->dir = si->dir; 3158 3159 /* Call media state */ 3160 if (call->local_hold) 3161 call_med->state = PJSUA_CALL_MEDIA_LOCAL_HOLD; 3162 else if (call_med->dir == PJMEDIA_DIR_DECODING) 3163 call_med->state = PJSUA_CALL_MEDIA_REMOTE_HOLD; 3164 else 3165 call_med->state = PJSUA_CALL_MEDIA_ACTIVE; 3155 3166 3156 3167 if (call->inv->following_fork) { … … 3221 3232 } 3222 3233 } 3223 3224 /* Call media direction */3225 call_med->dir = si->dir;3226 3227 /* Call media state */3228 if (call->local_hold)3229 call_med->state = PJSUA_CALL_MEDIA_LOCAL_HOLD;3230 else if (call_med->dir == PJMEDIA_DIR_DECODING)3231 call_med->state = PJSUA_CALL_MEDIA_REMOTE_HOLD;3232 else3233 call_med->state = PJSUA_CALL_MEDIA_ACTIVE;3234 3234 } 3235 3235 … … 3321 3321 pjmedia_srtp_info *srtp_info; 3322 3322 3323 /* Call media direction */ 3324 call_med->dir = si->dir; 3325 3326 /* Call media state */ 3327 if (call->local_hold) 3328 call_med->state = PJSUA_CALL_MEDIA_LOCAL_HOLD; 3329 else if (call_med->dir == PJMEDIA_DIR_DECODING) 3330 call_med->state = PJSUA_CALL_MEDIA_REMOTE_HOLD; 3331 else 3332 call_med->state = PJSUA_CALL_MEDIA_ACTIVE; 3333 3323 3334 /* Start/restart media transport */ 3324 3335 status = pjmedia_transport_media_start(call_med->tp, … … 3358 3369 } 3359 3370 } 3360 3361 /* Call media direction */3362 call_med->dir = si->dir;3363 3364 /* Call media state */3365 if (call->local_hold)3366 call_med->state = PJSUA_CALL_MEDIA_LOCAL_HOLD;3367 else if (call_med->dir == PJMEDIA_DIR_DECODING)3368 call_med->state = PJSUA_CALL_MEDIA_REMOTE_HOLD;3369 else3370 call_med->state = PJSUA_CALL_MEDIA_ACTIVE;3371 3371 } 3372 3372
Note: See TracChangeset
for help on using the changeset viewer.