outbound call from IPBX is routed the correct carrier sip trunk according to the IPB - carrier trunk relation.
For the 1st version, it is only a one 2 one relation.
wazo-sip-router server will do a HTTP async request to wazo-router providing SIP headers informations and get back in json format the routes list (the format is described in rtjson module for Kamailio documentation).
Kamailio module documentation :
http-async-client : https://www.kamailio.org/docs/modules/5.2.x/modules/http_async_client.html
Conditions of done :
delivery of package version that return a json respecting kamailio RTJSON format to an API call for an outcoming call from a declared IPBX to the assaciated trunk or a comprehensive error.