Hi Pete,
The 500 reply is generated within the t_relay(), if no branches are sent
out. A way to deal with this is to pass the 0x02 flag to t_relay(), to
force it to report the error to the script, rather than automatically
generated some err reply back. So t_relay() will fail and based on the
retcode you can generate something else back to the caller.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com
On 12.09.2024 18:06, Pete Kelly wrote:
Good afternoon.
I have a situation where I have a number of branches for a call,
within each branch I am performing some checks and the result of those
checks will mean that the branch gets dropped (with drop()) or allowed
to continue.
However if /all/ branches are dropped, a standard "500 Server error
occurred (1/TM)” message is sent upstream.
Is there a way to customise this 500 error?
Pete
_______________________________________________
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