barchandune / doubango

Automatically exported from code.google.com/p/doubango
0 stars 0 forks source link

Playout and Recording Stopped during media update #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Mobile Originator establish audio call with Mobile Terminator
2. Mobile Terminator receives the audio call and prepared the consumer and 
producer for audio
3. Later Mobile Originator changes to Video Call
4. In this case the Mobile Terminator receives the second SIP INVITE that 
contains SDP information of both Audio and Video.
5. After receiving the second INVITE, Audio producer and consumer is stopped.
6. And onPluginCreated() is called for video. Later audio plugin is created for 
both consumer and producer and finally the audio producer and consumer failed 
to start.

What is the expected output? What do you see instead?
Expected output: The video call should be established along with the audio.
What do we see: we see video call (provided fix in 
NgnAVSession::handleMediaUpdate to see the video call... fix: mimetype should 
be set before initializeConsumerAndProducer) and there is no audio call. The 
details are provided in the steps above

Our Observation:
The recording and playout is stopped when a media update occurs. Looks like the 
consumer and producer are completely destroyed when the media update occurs. We 
are analysing the root cause and update you if we find any.

What version of the product are you using? On what operating system?
IMSDroid v2.0.520 and Doubango 2.0 (r744)

Attached logs contains "Mani" Tag that contains more information about the call 
flow. Kindly provide your thoughts or fix for this issue.

Regards,
Mani

Original issue reported on code.google.com by jay.mani...@gmail.com on 11 Oct 2012 at 7:09

Attachments:

GoogleCodeExporter commented 9 years ago
After Producer and Consumer already prepared, we get the following error which 
was missing in the log file attached. The updated log file is attached in this 
comment.

Original comment by jay.mani...@gmail.com on 11 Oct 2012 at 7:41

Attachments:

GoogleCodeExporter commented 9 years ago
am also facing the same issue. please provide the fix or details !!

Original comment by thiravia...@gmail.com on 11 Oct 2012 at 8:00

GoogleCodeExporter commented 9 years ago
The audio issue "Playout and Recording Stopped during media update" seems to be 
fixed after "clearing all the session when media type is changed". Please refer 
the code snippet in function tmedia_session_mgr_set_ro (filename: 
tmedia_session.c).

================================================================================
if(self->started && ((!is_hold_resume && !is_loopback_address) || 
is_mediatype_changed)){
    if((ret = tmedia_session_mgr_stop(self))){
        TSK_DEBUG_ERROR("Failed to stop session manager");
        goto bail;
    }
    if((ret = _tmedia_session_mgr_clear_sessions(self))) {
        TSK_DEBUG_ERROR("Failed to clear session manager");
        goto bail;
    }
    stopped_to_reconf = tsk_true;
}
================================================================================

Kindly let me know if this is the fix or work around ???

Cheers,
Mani

Original comment by jay.mani...@gmail.com on 11 Oct 2012 at 3:18

GoogleCodeExporter commented 9 years ago
Fixed in r816

Original comment by boss...@yahoo.fr on 11 Feb 2013 at 12:25