[OpenSIPS-Users] how do I check destination user is offline
Vlad Paiu
vladpaiu at opensips.org
Tue Apr 14 17:32:20 CEST 2015
Hello,
If the destination is TCP, then you can detect the failure to relay in
your OpenSIPS script. See the flags that t_relay() takes at
www.opensips.org/html/docs/modules/1.11.x/tm#id294528
if (!t_relay("0x02")) {
# failure to relay , treat error here
}
Make sure to also set low tcp_send_timeout and tcp_connect_timeout
values , in order to detect the failures faster (
http://www.opensips.org/Documentation/Script-CoreParameters-1-11#toc92 )
Best Regards,
Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com
On 14.04.2015 15:02, chow wrote:
> Hi ALL:
> User A sent register to opensips. then User A client core-dump, so
> User A will never sent unregister message to opensips.
> in this case , how do I Immediately know User A unreachable .
> registered function can not know this,
> by the way, transport protocol is TCP.
> thanks a lot.
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-do-I-check-destination-user-is-offline-tp7596490.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list