More work on FreePBX ajax class.