James,
I'm not sure there's any way to intercept endogenously generated specialty requests (like uac_reg requests) in route script. If there is, it would only be in something relatively low-level like the onsend_route.
uacreg may use TM callbacks internally to catch responses, but that doesn't mean it exposes them into route script hooks. I have never seen or heard of such a mechanism.
-- Alex
On 02/20/2016 04:24 PM, James Cloos wrote:
I've started adding sip_trace to my kamailios, and mostly have it working, but cannot figure out how to capture the outgoing calls from uac_reg.
I had to add:
reply_route { sip_trace(); }
onsend_route { sip_trace(); }
to capture those packets. What *_route {} does uac_reg target for its outgoing packets?
I read uac_reg.[ch], and see that it uses the t_request method from tm's struct tm_binds. And that the methods are defined via a call to load_tm_api(), and that t_request defaults to the request() function in tm/uac.c.
But I don't see from that which route chunk it uses.
-JimC