Skip to content
Snippets Groups Projects
Commit 1001ea5a authored by kreismann's avatar kreismann Committed by Felipe Cecagno
Browse files

Cleaning onCallModifying

This function is responsible for building the 200 OK to answer the REINVITE coming from Freeswitch. In our cause, we just need to use bbb-voice local sdp to answer it. To a later and permanent change, however, it's recommended to investigate the SdpTools.java. My guess is that sdpMediaProduct function is comparing the media codecs in a wrong way.
parent 17828c35
No related branches found
No related tags found
No related merge requests found
...@@ -98,17 +98,7 @@ public abstract class CallListenerAdapter implements ExtendedCallListener ...@@ -98,17 +98,7 @@ public abstract class CallListenerAdapter implements ExtendedCallListener
{ {
//printLog("RE-INVITE/MODIFY"); //printLog("RE-INVITE/MODIFY");
String local_session; String local_session;
/*if (sdp!=null && sdp.length()>0) local_session=call.getLocalSessionDescriptor();
{
SessionDescriptor remote_sdp = new SessionDescriptor(sdp);
SessionDescriptor local_sdp = new SessionDescriptor(call.getLocalSessionDescriptor());
SessionDescriptor new_sdp = new SessionDescriptor(remote_sdp.getOrigin(),remote_sdp.getSessionName(),local_sdp.getConnection(),local_sdp.getTime());
new_sdp.addMediaDescriptors(local_sdp.getMediaDescriptors());
new_sdp = SdpTools.sdpMediaProduct(new_sdp,remote_sdp.getMediaDescriptors());
new_sdp = SdpTools.sdpAttirbuteSelection(new_sdp,"rtpmap");
local_session = new_sdp.toString();
}
else*/ local_session=call.getLocalSessionDescriptor();
// accept immediatly // accept immediatly
call.accept(local_session); call.accept(local_session);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment