There is a bug in ami.lua in originate action.
In config table there is a field "priority", but when constructing command to perform originate action this field is not used and Asterisk returns error "Originate with 'Exten' requires 'Context' and 'Priority'".
To fix this you need to add field Priority = config.priority in originate command construction code.