Hi,<br><br>With Opensips we can use timeout, for example after sending an INVITE if we do not receive any provisional responses
after 32 seconds, this registration binding should be refreshed / recreated.<br><br>Some equipments are generating 503 when they face a transport layer failure, we found out that this is quite reliable.<br>In our case it would be best to delete the binding to avoid loosing time trying to use when we know is is not working.<br>
<br>Is there a way to detecting transport layer failure in Opensips ? (TCP RST)<br><br><br><pre>8.1.3.1 Transaction Layer Errors
In some cases, the response returned by the transaction layer will
not be a SIP message, but rather a transaction layer error. When a
timeout error is received from the transaction layer, it MUST be
treated as if a 408 (Request Timeout) status code has been received.
If a fatal transport error is reported by the transport layer
(generally, due to fatal ICMP errors in UDP or connection failures in
TCP), the condition MUST be treated as a 503 (Service Unavailable)
status code.<br><br><br><br></pre><br><br><br><div class="gmail_quote">On Tue, Feb 12, 2013 at 4:46 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div bgcolor="#ffffff" text="#000000">
<tt>Hi Julien,<br>
<br>
Indeed, from script level you cannot remove a contact - but will
not be hard to add something like that. Nevertheless, may I ask
how do you figure out from script level if a registration must be
removed ? (socket related evens are not visible from the script
level)<br>
<br>
Regards,<br>
</tt>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre><div><div class="h5">
<br>
On 02/12/2013 11:02 AM, Julien Chavanton wrote:
</div></div><blockquote type="cite"><div><div class="h5">Hi, I have a case where is would be helpful to delete
a binding from the location database.<br>
<br>
For example, when we receive a socket reset or time-out while
trying to use it.<br>
<br>
I believe it can be done trough the MI : <br>
<br>
ul rm <username> [<contact URI>].... delete user's
usrloc entries<br>
<br>
But I just wanted to confirm that currently it can not be done
directly from the routing script ?<br>
<br>
</div></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</blockquote></div><br>