<div dir="ltr"><div class="gmail_extra">Hello List,</div><div class="gmail_extra"><br></div><div class="gmail_extra">i dunno why this happen :) after i write an email to the list - but now i found it.</div><div class="gmail_extra"><br></div><div class="gmail_extra">the app_lua/kemi function name is sr.dispatcher.select for ds_select_dst</div><div class="gmail_extra">The source-code documentation guides me to this point after greping around in app_lua.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"> # dst_select( "GROUP", "HASH METHOD")</div><div class="gmail_extra"> if(!ds_select_dst($avp(routing_target), "4")) {</div><div class="gmail_extra"> send_reply("404", "No destination");</div><div class="gmail_extra"> exit;</div><div class="gmail_extra"> }</div><div><br></div><div>In lua part it looks like this (the nil part maybe broken per default, lua dont like vars with nil)</div><div><br></div></div><div class="gmail_extra"><div class="gmail_extra">--- dispatcher route</div><div class="gmail_extra">function ksr_route_dispatch(direction, routing_target)</div><div class="gmail_extra"><br></div><div class="gmail_extra"> KSR.xlog.xinfo("new $fU -> $rU in routing_target ksr_route_dispatch");</div><div class="gmail_extra"> KSR.info(routing_target);</div><div class="gmail_extra"> if (routing_target == nil) then</div><div class="gmail_extra"> KSR.xlog.xinfo("routing_target nil");</div><div class="gmail_extra"> KSR.sl.sl_send_reply(604, "Does Not Exist Anywhere");</div><div class="gmail_extra"> KSR.x.exit();</div><div class="gmail_extra"> end</div><div class="gmail_extra"><br></div><div class="gmail_extra"> -- return code dispatcher.select NOT true - then 404</div><div class="gmail_extra"> if (sr.dispatcher.select(routing_target, 4) ~= 1) then</div><div class="gmail_extra"> KSR.sl.sl_send_reply(404, "No destination");</div><div class="gmail_extra"> KSR.x.exit();</div><div class="gmail_extra"> end</div><div class="gmail_extra"> ksr_route_myheader(pathinfo);</div><div class="gmail_extra"> ksr_route_relay();</div><div class="gmail_extra"> KSR.x.exit();</div><div class="gmail_extra">end</div><div><br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">-- <br><div class="gmail_signature">Kind Regards<br>*Karsten Horsmann*<br></div>
</div></div>