<div dir="ltr">ok noted. thanks alex.</div><div class="gmail_extra"><br clear="all"><div>Kelvin Chua</div>
<br><br><div class="gmail_quote">On Thu, Jan 2, 2014 at 3:51 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 01/02/2014 02:47 AM, Kelvin Chua wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
agreed. the design of the db and queries are all properly tested, with<br>
only milliseconds of query time even for tables as large as millions of<br>
rows. i wanted to implement this only for insurance and was wondering if<br>
it's doable, theoretically speaking.<br>
<br>
the timer module is promising although lacks dynamic assignment of<br>
timeouts. what i have in mind is:<br>
   - do a timer_enable() after receiving an INVITE.<br>
   - on timeout, go to rourte[timeout], statelessly send a cancel to<br>
callee(if applicable) and 408 to caller.<br>
   - OR upon getting a 200 OK from the callee's leg, disable the timer.<br>
   - do you think this is worthy of a feature request? something like<br>
timer_enable(timer_id, enable_disable, timeout)<br>
</blockquote>
<br></div>
To be honest, no, I don't think it's worth a feature request, because the complications of implementing something like this are not justified by the effectiveness of the solutions it offers to the sorts of problems you're identifying.<br>

<br>
Since you mentioned sql_xquery(), it's worth noting that some of the database connector modules (e.g. db_mysql) offer a query timeout parameter:<br>
<br>
<a href="http://kamailio.org/docs/modules/4.1.x/modules/db_mysql.html#idp1968288" target="_blank">http://kamailio.org/docs/<u></u>modules/4.1.x/modules/db_<u></u>mysql.html#idp1968288</a><div class="HOEnZb"><div class="h5">
<br>
<br>
-- Alex<br>
<br>
-- <br>
Alex Balashov - Principal<br>
Evariste Systems LLC<br>
235 E Ponce de Leon Ave<br>
Suite 106<br>
Decatur, GA 30030<br>
United States<br>
Tel: <a href="tel:%2B1-678-954-0670" value="+16789540670" target="_blank">+1-678-954-0670</a><br>
Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.alexbalashov.com/" target="_blank">http://www.alexbalashov.com/</a><br>
<br>
______________________________<u></u>_________________<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" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</div></div></blockquote></div><br></div>