Create GetRingerModeFunction