I am working on conference call using pjsip and facing problem in hold/re-invite call.
First of all, I am login with user "A" using my app and another user "B","C" are registered in another softphone. Now I call to user "B" and "C" from "A" and conference create successfully.
Then User "A" hold call and call was put on hold for last added call (In this case "C" was last added user) Every time, last added user is put on hold instead of the owner of the conference
Below is my code for hold/ re-invite
if (service != null) {
if (call.getMediaStatus() == SipCallSession.MediaState.LOCAL_HOLD ||
call.getMediaStatus() == SipCallSession.MediaState.NONE) {
service.reinvite(call.getCallId(), true);
Boast.makeText(this, "" + getResources().getString(R.string.on_resume), Toast.LENGTH_SHORT).show();
} else {
service.hold(call.getCallId());
}
}
Here call.getcallId() was last added call session id
The same secanrio is working fine for single call but facinng the problem in conference call only.
Does any one have idea how can I put owner only on hold?