[OpenSIPS-Users] Variable Question

Alexander Perkins alexanderhenryperkins at gmail.com
Thu Aug 8 14:52:22 UTC 2024


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20240808/bfeae9ae/attachment-0001.html>


More information about the Users mailing list