Hi, Of course var(x) will not work in that case, be sure in that.
Maybe someone can correct me about that, but in case of failure route
i am using $dlg_var(x) variables to get variable related to whole
call.
Also you can use setflag("X") in initial route and check by
isflagset("X") on failure route.чт, 8 авг. 2024 г. в 19:53, Alexander Perkins <[email protected]>: > > Hi All. If I want to have a variable set in the route block and available to > the failure route, which would be the appropriate way to do so? An AVP? Or > is there a better way? > > For example: > > route > { > > #do something > route(DO_INVITE) > > } > > route [DO_INVITE] > { > > #set variable > $var(x) = 123456; > t_on_failure("IT_FAILED"); > > } > > failure_route [IT_FAILED] > { > > xlog("L_INFO", "Variable X = $var(x)); > > } > > Any guidance is appreciated. > > Thank you, > Alex > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
