<p>In modules/drouting/drouting.c:</p>
<pre style='color:#555'>> + unsigned int i;
> + static const str gw_str = str_init("GATEWAY");
> + static const str carrier_str = str_init("CARRIER");
> + str chosen_desc;
> + str chosen_id;
> + for (i = 0; i < route->pgwa_len; ++i){
> + if (route->pgwl[i].is_carrier) {
> + chosen_desc = carrier_str;
> + chosen_id = route->pgwl[i].dst.carrier->id;
> + }
> + else {
> + chosen_desc = gw_str;
> + chosen_id = route->pgwl[i].dst.gw->id;
> + }
> +
> + if (add_mi_node_child(&rpl_tree->node, MI_IS_ARRAY, chosen_desc.s,
</pre>
<p>The MI_IS_ARRAY flag is used to indicate that a node has multiple children. Therefore I think the flag should be set on the rpl_tree->node, not on the child.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/293/files#r16039912">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMzM2MDQ4NywiZGF0YSI6eyJpZCI6MzkyMDI5OTB9fQ==--2e5b95ad4fe11d934c64c0d491da8512f8575f7e.gif" width="1" /></p>