FREEPBX-7204 #QA #comment This resolves an ongoing issue with phpagi
being fragile with its input. This patch makes it more tolerant of
errors and spurious outputs.