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

Commit e647099e authored by ram's avatar ram Committed by Etan Cohen
Browse files

IMS: getPCSCF() API enhanced to support multiple APN types.



Change-Id: I014f341b93a9ea7280e04cdfc13418fe81c9fc8b
Signed-off-by: default avatarram <ram.pl@samsung.com>
parent 1bc61376
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2789,13 +2789,13 @@ public class TelephonyManager {

    /**
     * Get P-CSCF address from PCO after data connection is established or modified.
     *
     * @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN
     * @return array of P-CSCF address
     * @hide
     */
    public String[] getPcscfAddress() {
    public String[] getPcscfAddress(String apnType) {
        try {
            return getITelephony().getPcscfAddress();
            return getITelephony().getPcscfAddress(apnType);
        } catch (RemoteException e) {
            return new String[0];
        }
+2 −1
Original line number Diff line number Diff line
@@ -634,8 +634,9 @@ interface ITelephony {

    /**
     * Get P-CSCF address from PCO after data connection is established or modified.
     * @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN
     */
    String[] getPcscfAddress();
    String[] getPcscfAddress(String apnType);

    /**
     * Set IMS registration state