I'm trying to set up a conference call using the sample app. Basically what I did was replace the
mSinchClient.getCallClient().callUser(userId)
directive with
mSinchClient.getCallClient().callConference(confId)
in the SinchService.java file. I thought that would set up a conference but it fails giving me an error:
com.sinch.android.rtc.sample.calling D/Call: onSessionTerminated: 94250e95-5a55-4f0f-97c0-ac85ed4f7bca: SessionDetails [startTime=1450151944, endTime=1450151946, progressTime=0, establishTime=0, terminationCause=FAILURE, packetsSent=0, packetsReceived=0, error=SinchError[errorType=OTHER, code=4000, message='DomainParameterInvalid (2228301)', data={serverCode=2228301, serverMessage=DomainParameterInvalid}]]
According to the documentation (https://www.sinch.com/docs/voice/android/#setupaconferencecall) that's pretty much all I have to do:
CallClient callClient = sinchClient.getCallClient();
Call call = callClient.callConference("<conferenceId>");
call.addCallListener(...);
Edit: After trying a few things here and there I got it working. The code would look something like this:
confToCall = etCallConf.getText().toString();
call = sinchClient.getCallClient().callConference(confToCall);
There's not much to it. That's probably the only difference with the sample code you get from the Sinch people.
You can find the source of my MainActivity here: MainActivity.java