I’m using Asterisk 12.4.0 with chan_pjsip, and having trouble resolving a domain with /etc/hosts .
When sending calls to a specific uri, we would like to resolve the domain using an /etc/hosts entry. When I ping the domain from the server, it resolves per my hosts file. But when sending the call, the INVITE is always sent to the IP that resolves with a regular DNS lookup, as if pjsip ignores the hosts file.
Is there some config parameter to ensure that PJSIP first checks the hosts file?