New script for FreePBX 2.11, and asterisk 1.8, 10 and 11