[SR-Users] execute config route by ctp command?

Alex Balashov abalashov at evaristesys.com
Wed Feb 1 21:45:04 CET 2017

On Wed, Feb 01, 2017 at 10:41:47PM +0200, Juha Heinanen wrote:

> Is there a way to execute a named config route, such as an event_route,
> by an rpc command?

I'm not aware of one, but xhttp requests inherently trigger an event_route:


If you had a need to execute some other logic that cannot be located
there, I suppose you could do something like:

event_route[xhttp:request] {
        if($hu =~ "^/juha_special_rpc_path") {
		xhttp_reply("200", "OK", "text/plain", "");
        } else
                xhttp_reply("404", "Not Found", "text/html", "");

-- Alex

Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 (direct) / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

More information about the sr-users mailing list