code now tested with all asterisk versions, swift5
revamp asterisk version detection
misc updates for asterisk < 1.8