<p>Hi all!<br />Could you tell me how can i get access to the data of branches, generated by lookup()?</p><p>I have something like that:</p><p>...<br />route[LOOKUP] {<br />...<br />lookup("location");<br />t_on_branch("ON_BRANCH");<br />...<br />}</p><p>branch_route["ON_BRANCH"] {<br />...<br />xlog("L_INFO", "[ON_BRANCH] Current branch data: idx = $T_branch_idx, uri = $(branch(uri)[$T_branch_idx])");<br />...<br />}<br />...</p><p>When lookup found more than 1 contact it appending a new branches, but i could read any data only from first of them:</p><p>Aug 23 16:56:03 opensips-test /usr/sbin/opensips[18629]: [ON_BRANCH] Current branch data: idx = 0, uri = sip:name@domain<br />Aug 23 16:56:03 opensips-test /usr/sbin/opensips[18629]: [ON_BRANCH] Current branch data: idx = 1, uri = &lt;null&gt;<br />Aug 23 16:56:03 opensips-test /usr/sbin/opensips[18629]: [ON_BRANCH] Current branch data: idx = 2, uri = &lt;null&gt;</p><p> </p><p>So, i can't access to any data of any branch except first one. Even more:</p><p>I need to delete branches after they fires fr_times (local 408 is received). To do that, i trying to call remove_branch($T_branch_idx) from failure_route:</p><p>...<br />failure_route[ON_FAIL] {<br />...<br />if (t_check_status("408")) {<br />...<br />remove_branch($T_branch_idx);<br />route(LOOKUP);<br />}<br />...<br />}</p><p>but after that, all branches still on their places. So, can i somehow delete these "expired" branches?</p><p>version: opensips 2.1.4 (x86_64/linux)</p>