<p>In modules/drouting/drouting.c:</p>
<pre style='color:#555'>&gt; +    unsigned int i;
&gt; +    static const str gw_str = str_init(&quot;GATEWAY&quot;);
&gt; +    static const str carrier_str = str_init(&quot;CARRIER&quot;);
&gt; +    str chosen_desc;
&gt; +    str chosen_id;
&gt; +    for (i = 0; i &lt; route-&gt;pgwa_len; ++i){
&gt; +        if (route-&gt;pgwl[i].is_carrier) {
&gt; +            chosen_desc = carrier_str;
&gt; +            chosen_id = route-&gt;pgwl[i].dst.carrier-&gt;id;
&gt; +        }
&gt; +        else {
&gt; +            chosen_desc = gw_str;
&gt; +            chosen_id = route-&gt;pgwl[i].dst.gw-&gt;id;
&gt; +        }
&gt; +
&gt; +        if (add_mi_node_child(&amp;rpl_tree-&gt;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-&gt;node, not on the child.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<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>