How works extensions_custom.conf

There’s more than a single call trace in the shared log lines, but if you look on line 380:

[2021-10-12 11:29:42] VERBOSE[3674][C-00000006] pbx.c: Executing [s@macro-dial:22] Macro("PJSIP/125-0000000a", "dial-ringall-predial-hook,") in new stack

you will see a call to a predial hook. There are several different predial hooks for internal calls depending on which ring strategy you’re using, but you know that already because you carefully read the linked thread above about how to use predial hooks. Review it again please: Hooking for fun and income