Hello, I am observing error: res_pjsip/pjsip_configuration.c:2368 ast_sip_retrieve_auths: Couldn't find auth 'provider'. Cannot authenticate. res_pjsip_outbound_authenticator_digest.c:144 digest_create_request_with_auth: Endpoint: 'provider': Failed to set authentication credentials I use config below. It reports the auth section is missing, but it is apparently here. What am I doing wrong? Thanks Marek ; =============================================== [global] type = global debug = no [transport-udp] type = transport protocol = udp bind = 0.0.0.0 external_media_address = x.x.x.x external_signaling_address = x.x.x.x local_net =192.168.1.0/255.255.255.0 [provider] type = registration transport = transport-udp outbound_auth = provider server_uri = sip:... client_uri = sip:... contact_user = username retry_interval = 20 forbidden_retry_interval = 600 expiration = 120 ;max_retries = 10 [provider] type = auth auth_type = userpass username = username password = password [provider] type = endpoint context = provider-in dtmf_mode = rfc4733 ;direct_media = no from_domain = provider.domain force_rport = yes rewrite_contact = yes rtp_symmetric = yes allow_subscribe = no outbound_auth = provider aors = provider disallow = all allow = alaw allow = ilbc allow = g729 allow = gsm allow = g723 [provider] type = aor contact = sip:... qualify_frequency = 15 [provider] type = identify endpoint = provider match = ... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20211019/3671253c/attachment.html>
On Tue, Oct 19, 2021 at 3:18 PM Marek Greško <mgresko8 at gmail.com> wrote:> Hello, > > I am observing error: > res_pjsip/pjsip_configuration.c:2368 ast_sip_retrieve_auths: Couldn't find > auth 'provider'. Cannot authenticate. > res_pjsip_outbound_authenticator_digest.c:144 > digest_create_request_with_auth: Endpoint: 'provider': Failed to set > authentication credentials > > I use config below. It reports the auth section is missing, but it is > apparently here. > > What am I doing wrong? >What does "pjsip show auths" in the CLI show? When PJSIP loads does it state an error with the configuration or any configuration? What is the contents of sorcery.conf (is it trying to pull auths from elsewhere)? -- Joshua C. Colp Asterisk Technical Lead Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20211019/089a7579/attachment.html>