I have addressed the suggested changes in the new commit: - removed route_lookup for kazoo:consumer-event as it may or may not exist - depending on using cfg or kemi: - fire_init_event() calls fire_init_event_cfg() or fire_init_event_kemi() - kz_amqp_consumer_event() calls kz_amqp_consumer_event_cfg() or and tidied up formatting.
Tested on my test servers for: kazoo_subscribe, kazoo_publish, kazoo:consumer-event, with the traditional cfg and Kemi (Lua). kz_amqp_consumer_event_kemi()