FS-5819: fix incorrect true type in call to switch_core_session_reset
FS-5819: fix var type usage outside the range of the enum