int ret = 0;
int state = 0;
- ret = dpm_restriction_get_messaging_state(dpm_handle, &state);
+ ret = dpm_restriction_get_messaging_state(dpm_handle, "sim1", &state);
if (ret != DPM_ERROR_NONE) {
MSG_ERR("dpm_restriction_get_messaging_state failed [%d]", ret);
return;
int ret = 0;
int state = 0;
- ret = dpm_restriction_get_messaging_state(dpm_handle, &state);
+ ret = dpm_restriction_get_messaging_state(dpm_handle, "sim1", &state);
if (ret != DPM_ERROR_NONE) {
MSG_ERR("dpm_restriction_get_messaging_state failed [%d]", ret);
return;