Re: [OpenSIPS-Users] how do I check destination user is offline

2015-04-15 Thread chow
Hi: thank you . Perfect answer !!! -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-do-I-check-destination-user-is-offline-tp7596490p7596552.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___

Re: [OpenSIPS-Users] how do I check destination user is offline

2015-04-14 Thread Vlad Paiu
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_se

[OpenSIPS-Users] how do I check destination user is offline

2015-04-14 Thread chow
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. th