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

Commit 6a20d796 authored by Suchand Ghosh's avatar Suchand Ghosh Committed by Howard Harte
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: I5584a3e7350bc362ea166a669a96d56f7f0579ae
CRs-Fixed: 800563
parent 82d56540
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