<div><div dir="auto">Hi Callum,</div></div><div dir="auto"><br></div><div dir="auto">Thanks for the reply. I’m aware of the different types of routes and how to arm reply and branch routes for the parent requests. </div><div dir="auto"><br></div><div dir="auto">I’m currently trying to port a Kamailio script I’ve written a while back to OpenSips. One of the routes is fairly generic and called  from both request routes as onreply routes, but depends on the functions is_request and is_reply, but these are Kamailio specific. </div><div dir="auto"><br></div><div dir="auto">The only solution I can think of now is passing the type as a route parameter when called from request or reply routes. </div><div dir="auto"><br></div><div dir="auto">route(GENERIC_ROUTE, “request”)</div><div dir="auto">Or</div><div dir="auto">route(GENERIC_ROUTE, “reply”)</div>