[OpenSIPS-Users] Midregistrar handle failed registrations

Liviu Chircu liviu at opensips.org
Wed Sep 16 09:31:40 EST 2020


On 16.09.2020 10:15, John Matich - Siptalk wrote:
> But there isn't anywhere that I can find to read a failed
> authentication.

Hi, John!

That is a SIP transaction handling, problem.  To solve it, make sure to 
read about t_on_failure() [1] and failure_route [2].  Once you hit the 
failure_route, you will have access to the REGISTER once again, so you 
can build the Authorization header, possibly using the "uac" + 
"uac_auth" combination of OpenSIPS modules.

Best regards,

[1]: https://opensips.org/docs/modules/3.2.x/tm.html#func_t_on_failure
[2]: https://www.opensips.org/Documentation/Script-Routes-3-2#toc3

-- 
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com




More information about the Users mailing list