FreeSWITCH Tutorial refactoring