<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br data-mce-bogus="1"></div><div>Hi all,</div><div><br data-mce-bogus="1"></div><div>I'm getting crazy trying to setup a kamailio to do a parallel call forward to multiple destinations based on a query to the DB.</div><div><br data-mce-bogus="1"></div><div>I do the db query and get the RURI's of the destinations I could forward the call to in parallel, then when I get the resulset I do:</div><div><br data-mce-bogus="1"></div><div>[...]</div><div><br data-mce-bogus="1"></div><div> $var(cf_idx) = 0;<br> while(is_avp_set("$(avp(s:cf_destinations)[0])"))<br> {<br>$ru = $(avp(s:cf_destinations)[0]);             # Set the new RURI to call to<br>$(avp(s:cf_destinations)[0]) = $null;           # Setting it to $null pull the value from the stack<br> $(avp(s:callee_fr_inv_timer)[*]) = $(avp(s:cf_timeouts)[0]) * 1000;<br> t_set_fr("$avp(s:callee_fr_inv_timer)");<br> $(avp(s:cf_timeouts)[0]) = $null;<br>route(ROUTE_ACC_CF);                          # Do the ACC<br> $(avp(s:acc_state)[*]) = "cfna";<br> $(avp(s:hih_cause)[*]) = "404";<br>$var(cf_idx) = $var(cf_idx) + 1;<br>append_branch();<br></div><div>}</div><div>route(ROUTE_EXECUTE_CF_LOOP);     # Some final task and then t_relay<br></div><div><br data-mce-bogus="1"></div><div>[...]</div><div><br data-mce-bogus="1"></div><div>But only the last RURI get called</div><div><br data-mce-bogus="1"></div><div>How do I do to accomplish this? ... I need to change the $ru of each new branch, so when request get loop-back to the proxy, it do again all the lookup logic.</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Best regards</div></div></body></html>