if (_bt_dpm_get_bluetooth_pairing_state() == DPM_RESTRICTED) {
BT_ERR("Not allow to pair the device");
gap_agent_reply_confirmation(agent, GAP_AGENT_REJECT, NULL);
if (_bt_dpm_get_bluetooth_pairing_state() == DPM_RESTRICTED) {
BT_ERR("Not allow to pair the device");
gap_agent_reply_confirmation(agent, GAP_AGENT_REJECT, NULL);