<div dir="ltr">On Tue, May 7, 2013 at 5:23 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 05/07/2013 04:25 PM, Matthew Williams wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
GIven a route[] that might be called either directly from the request<br>
route (transaction does not exist) or asynchronously (transaction<br>
exists), a way is needed to rationally choose between sl_send_reply and<br>
t_reply.<br>
<br>
At the moment, I am using an intermediate async route and setting<br>
$var(async) = 1 and then testing that when a reply needs to be sent. It<br>
seems there could be a more elegant solution.<br>
<br>
One thought I had is a new tm function that will choose between t_reply<br>
and sl_send_reply depending on whether a transaction has been created.<br>
<br>
Any other ideas? Or am I missing an obvious solution?<br>
</blockquote>
<br></div>
I think what you're missing is send_reply():<br>
<br>
<a href="http://kamailio.org/docs/modules/4.0.x/modules/sl.html#idp326112" target="_blank">http://kamailio.org/docs/<u></u>modules/4.0.x/modules/sl.html#<u></u>idp326112</a><br>
<br>
-- Alex<br></blockquote><div><br></div><div style>Thank you, Alex, that's exactly what I was missing. </div></div><div><br></div>-- <br><div><span style="font-size:12px">Matthew Williams</span></div><div><span style="font-size:12px">Flowroute LLC</span></div>
<div><br></div><span><span style="border-collapse:collapse;font-size:12px"><b>Important Notice: </b> This message is intended only for the person or entity to which it is addressed.  The information provided is confidential.  Accordingly, any review, retransmission, dissemination or other use of this information by, or disclosure of it to, anyone other than the intended recipient could have significant adverse effects and is prohibited.  Opinions, conclusions and other information in this message that do not relate to official business of my company shall be understood as neither given nor endorsed by it.</span></span><span> </span><br>

</div></div>