<p>For some specific in call queries, I need to specify a timeout. Basically, if I don't get a result in Xms, then give up and continue as if the database returned an errored resultset. I know there is timeout_interval, however, that is an integer value and is for each retry. I'm requesting an overall timeout.</p>

<p>It may also be useful to return something specific to indicate the result is empty due to a timeout. </p>

<p>Use case here is for call routing lookups. If the lookup doesn't return in Xms, the call isn't routable, Excessive PDD isn't acceptable and I'd rather fail the call then hang children waiting for a response. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/363">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/5479561__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyOTE0OTEyNCwiZGF0YSI6eyJpZCI6NDYwODk5Njd9fQ==--c8d706a19ff604ad44cf79e309619ced31c75fca.gif" width="1" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"View this Issue on GitHub","action":{"@type":"ViewAction","url":"https://github.com/OpenSIPS/opensips/issues/363","name":"View Issue"}}</script>