lots of fixing

this code is tested on Asterisk 1.8 and 11 and contains several critical fixes for other versions.   it also introduces a new feature for setting the voice dynamically via channel variable SWIFT_VOICE.