fixed bugs related to freeswitch handling