[OpenSIPS-Devel] Pseudo variables in failure route
Liviu Chircu
liviu at opensips.org
Wed Jul 10 11:50:24 EDT 2019
That's because the purpose of failure_route [1] is to give you the SIP
request which failed, so you can re-decide on how to route it (forward
the error, re-route, failover, etc.).
If you want to access the values behind those vars, you must access them
using the reply's context, with the following constructs:
xlog("L_INFO", "Call failed with $(<reply>rs) $(<reply>rr) ($ci)\n");
Cheers,
[1]: https://www.opensips.org/Documentation/Script-Routes-3-0#toc3
Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com
On 10.07.2019 18:46, Dan Pascu wrote:
> Some pseudo variables do not seem to be available in the failure route, while others are.
>
> I have a log line like this in the failure route:
>
> x_log("L_INFO", "Call failed with $rs $rr ($ci)\n");
>
> which always produces:
>
> Call failed with <null> <null> (some_callid)
>
> --
> Dan
>
>
>
>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
More information about the Devel
mailing list