<div dir="ltr"><div>Hello, <br></div><div><br></div><div>I am redirecting the agents/reps to their asterisk server based on the hostname which they connect, and, i wonder if it's possible to read from db instead of the file cause it's getting big ;)</div><div><br></div><div># Dispatch requests<br>route[DISPATCH] {<br>        switch ($fd){<br>                        case "<a href="http://oro.streamlinepbx.nl">oro.streamlinepbx.nl</a>":<br>                                if (!ds_select_dst("1", "4")) {<br>                                        send_reply(503, "Service Unavailable $fd");<br>                                        exit;<br>                                }<br>                                break;<br>                        case "<a href="http://oro3.streamlinepbx.nl">oro3.streamlinepbx.nl</a>":<br>                                if (!ds_select_dst("2", "4")) {<br>                                        send_reply(503, "Service Unavailable $fd");<br>                                        exit;<br>                                }<br>                                break;</div><div>                      ............<br>                        default:<br>                            log("unknow destination?");<br>                            send_reply(503, "No service defined");<br>                            xlog("--- SCRIPT: going to <$ru> via <$du> ...Exiting");<br>                            exit;<br>                }<br><br>        xlog("--- SCRIPT: going to <$ru> via <$du> (attrs: $xavp(_dsdst_=>attrs))\n");<br>        t_on_failure("RTF_DISPATCH");<br>        route(RELAY);<br>        exit;<br>}</div><div><br></div><div>Thanks,</div><div><br></div></div>