ERROR[21621]: res_pjsip.c:1769 endpt_send_request: Error 320047 'No answer record in the DNS response (PJLIB_UTIL_EDNSNOANSWERREC)' sending OPTIONS request to endpoint

Hi,

I’m getting the error message in the subject since updating to version 18.26.4.

I’m guessing that the VOIP provider doesn’t have SRV records. I couldn’t find a way to disable the srv lookups. Asterisk 16.28.0~dfsg-0+deb11u7 is working fine with the same VOIP provider.

What might be the solution to this problem?

There is no disabling SRV records, and even if they didn’t have SRV records that wouldn’t cause that log message.

You haven’t shown pjsip.conf or complete logging. I’d also suggest double checking the log output when Asterisk starts in case there is an issue with your configuration.

Sorry, I put the wrong error message into the subject. I changed it now.

The old message I got when specifying the IPv4 address of the server of the VOIP provider. The new message is when specifying the fqdn.

Complete log output is difficult to read on Fedora. It was working on Fedora 43 and stopped working on Fedora 44, and I didn’t change the configuration.

Let me see if I can read the logging output …

transport-tls: ca_list_file /etc/pki/tls/certs/ca-bundle.crt is either missing or not readable

So that must have changed due to the upgrade. Apparently is now /etc/ssl/certs/ca-bundle.crt.

There is a bunch of error messages about modules that can’t be loaded and others that are deprecated, and the pjsip wizard is reporting some problems, too. I’ll try to fix them and go from there.

Ok I fixed all the errors except for these two:

res_pjsip_config_wizard.c:342 create_object: Unable to apply object type ‘registration’ with id ‘example-reg-0’. Check preceeding errors.
res_pjsip_config_wizard.c:1100 object_type_loaded_observer: Unable to create objects for wizard ‘example’

There are no preceding errors. I have in pjsip_wizard.conf an entry for the registration at the VOIP provider like this:

[example]
type = wizard
sends_auth = yes
sends_registrations = yes
remote_hosts = voip.example.com:5061
aor/qualify_frequency = 25
outbound_auth/username = [username]
outbound_auth/password = [password]
endpoint/media_encryption = sdes
endpoint/allow = !all,g722,alaw,ulaw
endpoint/context = example_context
; from_user is required by provider
endpoint/from_user = [username]

What is the above error message supposed to tell me, and how I do fix this?

Ok I added a transport option and it seems to be working now :slight_smile:

I thought the transport isn’t mandatory and will be picked automatiaclly from the ones available in pjsip.conf. Am I wrong?

But I can’t call myself. Something is still wrong …

Incoming calls are going to the s extension now. They used to go to a an extension specified with registration/contact_user. But I removed that because there were error messages about registration entries. Is there a way to get this option back?