if(!switch_channel_up(member_channel)){/* If channel is still up, it mean that the member didn't hangup, so we should leave the agent alone */
if(!switch_channel_up(member_channel)||!switch_channel_get_variable(member_channel,"cc_agent_uuid")){/* If channel is still up, it mean that the member didn't hangup, so we should leave the agent alone */