<div dir="ltr"><p dir="ltr">If your process is also acting as a SIP proxy, you may wish to consider preloading route headers into the UAC-generated message and sending the packets to the proxy port (where they would go through request_route as any other proxied request, and via onreply/failure routes for responses).</p>
<p dir="ltr">It does add overhead but the simplicity may be worth it for you.</p>
<p dir="ltr">Armen</p>
<div class="gmail_quote">On Feb 20, 2016 1:27 PM, "Alex Balashov" <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">James,<br>
<br>
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.<br>
<br>
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.<br>
<br>
-- Alex<br>
<br>
On 02/20/2016 04:24 PM, James Cloos wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've started adding sip_trace to my kamailios, and mostly have it<br>
working, but cannot figure out how to capture the outgoing calls<br>
from uac_reg.<br>
<br>
I had to add:<br>
<br>
   reply_route {<br>
        sip_trace();<br>
   }<br>
<br>
   onsend_route {<br>
        sip_trace();<br>
   }<br>
<br>
to capture those packets.  What *_route {} does uac_reg target for its<br>
outgoing packets?<br>
<br>
I read uac_reg.[ch], and see that it uses the t_request method from<br>
tm's struct tm_binds.  And that the methods are defined via a call<br>
to load_tm_api(), and that t_request defaults to the request() function<br>
in tm/uac.c.<br>
<br>
But I don't see from that which route chunk it uses.<br>
<br>
-JimC<br>
<br>
</blockquote>
<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
303 Perimeter Center North, Suite 300<br>
Atlanta, GA 30346<br>
United States<br>
<br>
Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a> (direct)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
</div>