Awfully sorry for the delay. Reply inline.
We force a reset() on every call to re/register the user agent so that Jitsi observes TTL.
Without getting too long winded in the explanation, DNS lookups are not being made following the initial register. The fix can be seen below.
We just had a quick chat with Ingo about this and we can't quite figure
out exactly what it is that you are trying to achieve with this change.
Now, while it is true that we won't blindly resend NAPTR and SRV queries
upon re-registration, the reason for this is not within the SIP
implementation. Our SIP provider queries NetworkUtils for DNS records
every time it registers to a SIP server.
The reason there are no NAPTR/SRV queries every time is due to the fact
that dnsjava implements a cache which respects TTL times in the records
Have you seen it behaving otherwise?
Clearing the cache would indeed allow for NAPTRs and SRVs to be sent
again but then TTLs are definitely not going to be observed, which seems
to be your original concern.
Either way, I don't see any change in behaviour after applying your
patch. Was there something missing?
On 02.10.12, 20:44, Oren Forer wrote:
@@ -369,6 +369,7 @@ public class AutoProxyConnection
state = State.New;
+ this.socketAddress = null;
//determine the hostname of the proxy for autodetection:
//1) server part of the user ID
Engineer - Junction Networks
212-933-9190 x 7021