summaryrefslogtreecommitdiff
path: root/include/mts/MTS_IO_ICellularRadio.h
diff options
context:
space:
mode:
authorMykola Salomatin <mykola.salomatin@globallogic.com>2021-09-29 16:20:21 +0300
committerMykola Salomatin <mykola.salomatin@globallogic.com>2021-09-29 16:20:21 +0300
commit28b673dd4db086f1957c5cdae281f54980715e36 (patch)
treed9e62a1a039fc9a25d67ec4ef6ad2a260ad97ce0 /include/mts/MTS_IO_ICellularRadio.h
parent8eb97c149a08f6ec9d938be53868ee426895bf0e (diff)
downloadlibmts-io-28b673dd4db086f1957c5cdae281f54980715e36.tar.gz
libmts-io-28b673dd4db086f1957c5cdae281f54980715e36.tar.bz2
libmts-io-28b673dd4db086f1957c5cdae281f54980715e36.zip
[MTX-4206] mPower R.6.0: Making Telit and Quectel radios data-only on AT&T network. GP-1364
Add 2 functions for Telit and Quectel modems: - disableVoiceSupport: disable voice support (IMS and CSFB) and enable SMS only registration flag. - getVoiceSupport: get voice support configuration for the current radio.
Diffstat (limited to 'include/mts/MTS_IO_ICellularRadio.h')
-rw-r--r--include/mts/MTS_IO_ICellularRadio.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_ICellularRadio.h b/include/mts/MTS_IO_ICellularRadio.h
index 58329c4..e061636 100644
--- a/include/mts/MTS_IO_ICellularRadio.h
+++ b/include/mts/MTS_IO_ICellularRadio.h
@@ -153,6 +153,8 @@ namespace MTS {
static const char *KEY_SIM_CARRIER_CODE; //!< Unique carrier identifier based on the SIM card information.
static const char *KEY_SIM_MCC; //!< MCC of the home network from the SIM.
static const char *KEY_SIM_MNC; //!< MNC of the home network from the SIM.
+ static const char *KEY_VOICE_ENABLED; //!< Enable/Disable support of voice calls
+ static const char *KEY_SMS_ONLY; //!< Enable/Disable "SMS only" registration flag
//Network Status Data
@@ -592,6 +594,32 @@ namespace MTS {
*/
virtual CODE getSimMccMnc(std::string& sMccMnc) = 0;
virtual CODE getSimMccMnc(std::string& sMcc, std::string& sMnc) = 0;
+
+ /**
+ * @brief disableVoiceSupport - disable voice support (IMS and CSFB) and enable "SMS only" registration flag.
+ *
+ * @return CODE::SUCCESS when disabled successfully,
+ * CODE::NOT_APPLICABLE when the modem doesn't support this feature,
+ * CODE::NO_RESPONSE when the modem doesn't respond,
+ * CODE::ERROR when the radio returns "ERROR",
+ * CODE::FAILURE otherwise (unexpected response).
+ */
+ virtual CODE disableVoiceSupport() = 0;
+
+ /**
+ * @brief getVoiceSupport - get voice support configuration for the current radio.
+ *
+ * @param bVoiceEnabled - a boolean value indicating that "voice support" is enabled.
+ * @param bSmsOnly - a boolean value indicating that "SMS only" registration flag is enabled.
+ *
+ * @return CODE::SUCCESS when fetched successfully,
+ * CODE::NOT_APPLICABLE when the modem doesn't support this feature,
+ * CODE::NO_RESPONSE when the modem doesn't respond,
+ * CODE::ERROR when the radio returns "ERROR",
+ * CODE::FAILURE otherwise (unexpected response).
+ */
+ virtual CODE getVoiceSupport(Json::Value& jData) = 0;
+ virtual CODE getVoiceSupport(bool& bVoiceEnabled, bool& bSmsOnly) = 0;
};
}
}