George Joseph
2013-Sep-03 18:18 UTC
[asterisk-users] Asterisk 12 Outbound Authentication Failures on Realm
Trying out Asterisk 12 and the new pjsip module... When I create an registration object that links to an auth object, the registration fails with "res_pjsip_outbound_authenticator_digest.c:90 digest_create_request_with_auth: Failed to create new request with authentication credentials" unless the auth object has it's realm set exactly to the realm returned in the 401 response from the remote server. Shouldn't the auth object automatically be using the realm from the incoming 401? Otherwise I have to create an auth object for each remote server even if the only thing different is the realm (the scenario is a provider with multiple servers where the realm is the server name) . It also means I have to actually look at the incoming 401 packets to get the realm. Bug, feature or my misunderstanding? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130903/4c1b980f/attachment.htm>
Joshua Colp
2013-Sep-03 18:20 UTC
[asterisk-users] Asterisk 12 Outbound Authentication Failures on Realm
George Joseph wrote:> Trying out Asterisk 12 and the new pjsip module... > > When I create an registration object that links to an auth object, the > registration fails with "res_pjsip_outbound_authenticator_digest.c:90 > digest_create_request_with_auth: Failed to create new request with > authentication credentials" unless the auth object has it's realm set > exactly to the realm returned in the 401 response from the remote server. > > Shouldn't the auth object automatically be using the realm from the > incoming 401? Otherwise I have to create an auth object for each remote > server even if the only thing different is the realm (the scenario is a > provider with multiple servers where the realm is the server name) . It > also means I have to actually look at the incoming 401 packets to get > the realm. > > Bug, feature or my misunderstanding?This is currently logged as the following issue: https://issues.asterisk.org/jira/browse/ASTERISK-22386 Despite there being no current progress on it keep checking back or add yourself as a watcher. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: www.digium.com & www.asterisk.org
Reasonably Related Threads
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.
- Asterisk 13.1.0/PJSIP outbound calling using SIP trunk: Unable to create request with auth.No auth credentials for any realms in challenge.