Having an issue with sending a notify to an extension. PJSIP extension 119, sending the below command:
pjsip send notify polycom-check-cfg uri sip:119@PHONE_WAN_IP:16594;x-ast-orig-host=PHONE_LAN_IP:5060
The response in the asterisk CLI that I get is:
Sending NOTIFY of type 'polycom-check-cfg' to 'sip:119@PHONE_WAN_IP:16594;x-ast-orig-host=PHONE_LAN_IP:5060'
[2022-07-12 16:18:13] ERROR[9627]: res_pjsip_outbound_authenticator_digest.c:447 digest_create_request_with_auth: Host: 'PHONE_WAN_IP:16594': There were no auth ids available
The polycom-check-cfg context is in /etc/asterisk/sip_notify_custom.conf:
[polycom-check-cfg]
Event=>check-sync
I get the same error message if I try to send the notify to an endpoint instead of a uri.
Default endpoint is specified. I’ve received the error mentioned in your post so I did that just in case, even though the error is different.
Also I believe the uri is complete. I get the same error if I try to send the notify to the endpoint instead so I don’t think it’s related to the use of the uri.
The endpoint is challenging for authentication, and there is no configuration in PJSIP for outbound authentication. You can confirm the challenge by looking at “pjsip set logger on”.
Without looking at the logs, he is saying that there is way of doing so in chan_pjsip, but either you haven’t invoked it at your end, or it shouldn’t have been invoked at the other.
No, I meant the specific configuration in use doesn’t have authentication for outbound. If an endpoint is used instead, and outbound authentication is configured, then I believe it would authenticate. How that is done in FreePBX, and what credentials the phone wants (I assume the credentials we challenge it for) I don’t know.
Configured PJSIP endpoints in Asterisk have an “outbound_auth” option. When set the given authentication section is used when challenged by the remote side for credentials.
There may be a phone configuration option to not challenge NOTIFY for auth, or not challenge for registered source IP. I know this is a setting in GS GXP devices as it came up in EPM years ago.
I tried adding the below context to /etc/asterisk/pjsip.aor_custom.conf and I can see it added what I wanted when I run asterisk -x "pjsip show endpoint 119" but I still get the same error when sending the notify.
[119](+)
outbound_auth=extension_secret
I’m not even sure if the extension secret is the right auth but I would have thought that at least with that parameter filled in I wouldn’t have received the same error message, right?
yet I still see the same error message in the CLI when sending the notify:
[2022-07-13 10:34:34] ERROR[27019]: res_pjsip_outbound_authenticator_digest.c:447 digest_create_request_with_auth: Host: 'PHONE_WAN_IP:16613': There were no auth ids available