fix switch param pointer and add hangup call