Summary: | ASTERISK-26039: chan_sip: Failure to INVITE authentication. (When the From header is "Anonymous".) | ||
Reporter: | Hiroaki Komatsu (Hiroaki Komatsu) | Labels: | |
Date Opened: | 2016-05-19 04:16:19 | Date Closed: | 2016-05-20 05:02:45 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/General |
Versions: | 13.9.1 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | centOS 6.5(kernel-2.6.32-431.3.1.el6.x86_64) | Attachments: | ( 0) extensions.conf ( 1) sip.conf ( 2) sipp.tar.gz |
Description: | On the asterisk, the same IP of the terminal has been registered.
{noformat} Name/username Host Dyn Forcerport Comedia ACL Port Status Description 2001/2001 10.7.120.227 D Auto (No) No 5060 Unmonitored 2002/2002 10.7.120.227 D Auto (No) No 5061 Unmonitored 2003/2003 (Unspecified) D Auto (No) No 0 Unmonitored {noformat} I sent the invite(From header is "Anonymous") from 2002 terminal to Asterisk in this state.As a result, it became the invite authentication error. {noformat} [May 19 23:04:27] WARNING[28383][C-00000003]: chan_sip.c:16583 check_auth: username mismatch, have <2002>, digest has <2001> [May 19 23:04:27] NOTICE[28383][C-00000003]: chan_sip.c:25473 handle_request_invite: Failed to authenticate device "Anonymous" <sip:anonymous@anonymous.invalid>;tag=31853SIPpTag091 {noformat} From the log, Asterisk is a signal received from the 2002 terminal, it seems to have recognized that it has received from 2001. If the From header of Anonymous, I think Asterisk performs a search of the terminal on the basis of the IP address. However, because a search without the port number, I think that the above results. Can you confirm the problem existence and Workarounds. I attach a SIPp scenario and asterisk configuration files when performing a reproduction test. ■Environment, Steps to Reproduce {noformat} ◎Asterisk(10.7.120.249) ・centOS 6.5 ・asterisk-13.9.1 ・Asterisk reads the following configuration. - sip.conf - extensions.conf ◎SIPp client(10.7.120.227) ・centOS 6.5 ・sipp-3.3 ・Steps to Reproduce ①register #cd sipp/register #./uac_register.sh ⇒It registers the 2001 and 2002 terminal to Asterisk ②invite #cd sipp/invite_anonymous #./uac_invite.sh ⇒It sends the invite(From header is "Anonymous") from the 2002 terminal to Asterisk. ⇒It became the invite authentication error. {noformat} | ||
Comments: | By: Asterisk Team (asteriskteam) 2016-05-19 04:16:20.053-0500 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. By: Hiroaki Komatsu (Hiroaki Komatsu) 2016-05-19 20:32:42.239-0500 sorry.There was an error in the sipp scenario. If the correct scenario, asterisk13.9.1 looks to work normally. Please once as withdrawn. By: Joshua C. Colp (jcolp) 2016-05-20 05:02:45.674-0500 Per reporter request, marking closed as not a bug! |