Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a4727ca authored by Suchand Ghosh's avatar Suchand Ghosh Committed by Deepak Kundra
Browse files

IMS: Allow add participant with normal IMS call.

We should allow add participant with normal IMS
call to make it conference.
Send add participant through existing connection
of normal IMS call.

Change-Id: Ia634b10addc682bd9a41ae2273228345f1181953
CRs-Fixed: 800563
parent 1a503b03
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
@@ -903,7 +903,10 @@ public abstract class ConnectionService extends Service {
    private void addParticipantWithConference(String callId, String participant) {
        Log.d(this, "ConnectionService addParticipantWithConference(%s, %s)", participant, callId);
        Conference conference = findConferenceForAction(callId, "addParticipantWithConference");
        if (conference != null) {
        Connection connection = findConnectionForAction(callId, "addParticipantWithConnection");
        if (connection != getNullConnection()) {
            onAddParticipant(connection, participant);
        } else if (conference != getNullConference()) {
            conference.onAddParticipant(participant);
        }
    }
@@ -1190,6 +1193,19 @@ public abstract class ConnectionService extends Service {
     */
    public void onConference(Connection connection1, Connection connection2) {}

    /**
     * Add participant with connection. Invoked when user has made a request to add
     * participant with specified connection. In response, the participant should add with
     * the connection.
     *
     * @param connection A connection where participant need to add.
     * @param participant Address of participant which will be added.
     * @return
     *
     * @hide
     */
    public void onAddParticipant(Connection connection, String participant) {}

    /**
     * Indicates that a remote conference has been created for existing {@link RemoteConnection}s.
     * When this method is invoked, this {@link ConnectionService} should create its own