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

Commit 09cfc17c authored by Jack Yu's avatar Jack Yu
Browse files

Fixed that PCSCF address not updated

Fixed that PCSCF address was not updated when getting
new update from the modem.

Fix: 172751919
Test: Manual
Merged-In: I827c33d16dc03a69c351c4734dd5b0ad9831fca4
Change-Id: I827c33d16dc03a69c351c4734dd5b0ad9831fca4
(cherry picked from commit 9d187aee)
parent 85399462
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -1047,10 +1047,7 @@ public class DataConnection extends StateMachine {
        } else {
            if (DBG) log("onSetupConnectionCompleted received successful DataCallResponse");
            mCid = response.getId();

            mPcscfAddr = response.getPcscfAddresses().stream()
                    .map(InetAddress::getHostAddress).toArray(String[]::new);

            updatePcscfAddr(response);
            result = updateLinkProperty(response).setupResult;
        }

@@ -2885,6 +2882,16 @@ public class DataConnection extends StateMachine {
        return mConnectionParams;
    }

    /**
     * Update PCSCF addresses
     *
     * @param response
     */
    public void updatePcscfAddr(DataCallResponse response) {
        mPcscfAddr = response.getPcscfAddresses().stream()
                .map(InetAddress::getHostAddress).toArray(String[]::new);
    }

    /**
     * @return The list of PCSCF addresses
     */
+1 −0
Original line number Diff line number Diff line
@@ -296,6 +296,7 @@ public class DcController extends Handler {
                        }
                    }
                } else {
                    dc.updatePcscfAddr(newState);
                    // Its active so update the DataConnections link properties
                    UpdateLinkPropertyResult result = dc.updateLinkProperty(newState);
                    if (result.oldLp.equals(result.newLp)) {