Move common code for setting T38 capabilities and fix a bug with fax detection in...