[kamailio/kamailio] Add read-only variables to expose the currently set transaction branch, failure, onreply, and branch failure routes. (Issue #4986)
whosgonna created an issue (kamailio/kamailio#4986) ### Description Add the following read-only pseudo-variables to expose the currently set branch_route, onreply_route, failure_route, and branch_failure_route ### Expected behavior Implement these within the `$T()` variables exported by the TMX module. ``` ## Set transaction routes: t_on_branch("MANAGE_BRANCH"); t_on_failure("MANAGE_FAILURE"); t_on_reply("MANAGE_REPLY"); t_on_branch_failure("MANAGE_BRANCH_FAILURE"); ## Retrieve branch route: xinfo("Branch route is $T(branch_route)\n"); xinfo("Failure route is $T(failure_route)\n"); xinfo("Onreply route is $T(onreply_route)\n"); xinfo("Branch failure route is $T(branch_failure_route)\n"); ``` Will print to the log:
Branch route is MANAGE_BRANCH Failure route is MANAGE_FAILURE Onreply route is MANAGE_REPLY Branch failure route is MANAGE_BRANCH_FAILURE
-- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4986 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4986@github.com>
Closed #4986 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4986#event-33641237433 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issue/4986/issue_event/33641237433@github.com>
miconda left a comment (kamailio/kamailio#4986) The related PR was merged. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4986#issuecomment-6266794905 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4986/6266794905@github.com>
participants (2)
-
Ben Kaufman -
Daniel-Constantin Mierla