replaced calls to ftdm_mutex_lock() with ftdm_channel_lock()
FreeTDM http://wiki.freeswitch.org/wiki/FreeTDM