setDnsSrvLookup
Enables or disables resolving the SIP server through DNS SRV records (RFC 3263).
When enabled, PJSIP's own resolver is configured with the active network's DNS servers and the registrar/proxy URIs are the account's realm, which must then be a SIP domain, with no port, so the port comes from the realm's SRV records (looked up as _sips._tcp for TLS, _sip._tcp for TCP). If the device DNS can't be used by PJSIP (no servers, or strict Private DNS), the stack falls back to host:port as if this were disabled.
Stack-wide and read once per stack start: the change takes effect on the next start, so call restartSipStack if the stack is already running.
Parameters
context
the context
enabled
true to resolve the SIP server through DNS SRV records