https://pastebin.freeswitch.org/view/e5e83334