Hi MC_,
We are able to resolve the metaflow issue by changing the routing key of metaflow and succesfull in receiving the put request and send to konami_listener queue.
But we are getting the below error in konami_listener function handle_metaflow.
sandbox 2600hz[28688]: |0000000000|Undefined:Undefined(emulator) Error in process <0.6148.0> on node 'kazoo_apps@sandbox.com' with exit value:#012{function_clause,[{kz_json,get_json_value,[<<"Custom-Channel-Vars">>,undefined,{[]}],[{file,"src/kz_json.erl"},{line,771}]},{kapps_call,from_json,2,[{file,"src/kapps_call.erl"},{line,439}]},{konami_listener,handle_metaflow,2,[{file,"src/konami_listener.erl"},{line,71}]}]}.
does the put request needs to have Custom-Channel-Vars also.
Below is the put request
{"action":"metaflow","data":{"module":"callflow","data":{"flow":{"module":"set_variables","data":{"custom_application_vars":{"action-name":"play-media","tenant-id":"92f50f30-661c-11e6-b9-ca81484488df","interaction-id":"87ea1654-f964-4f7d-8927-8252eae1e1e8","sub-id":"4b2f4f1c-6f6654-8ff0-7d6c4c4f6972","action-id":"89123b50-fa4d-11e9-8a87-45be5952b"}},"children":{"_":{"module":"play","data":{"id":"http://testlabs-dev-configurator-media.s3.amazonaws.com/92f50f30-661c-11e6-b1b9-ca81488df/1990f37d-2282-4815f5-3b8fe59ef5fd/Coincidences.mp3","terminators":[]},"children":{"_":{"module":"pivot","data":{"method":"POST","req_format":"kazoo","voice_url":"https://us-east-1-dev-kazoo-gateway.testlabs.net/tenants/92f50f3061c-11e6-b1b9-ca81484488df/interactions/87ea1654-4-4f7d-8927-8252eae1e1e8/tasks/4b2f4f1c-6f66-4254-8ff0-7d6c4c4f6972/actions/89123b50d-11e9-8a87-45b605e5952b?actionName=play-media"},"children":{}}}}}}}}}
Please have a look and let us know If any modifications are required.
Regards,
Vijay