Summary: | ASTERISK-12393: IAX2 username is case-insensitive in registration, but case sensitive in dialing | ||
Reporter: | Vasil Kolev (maniax) | Labels: | |
Date Opened: | 2008-07-16 09:06:33 | Date Closed: | 2008-07-16 17:09:23 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_iax2 |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | If you have a username like 'tesT' in iax.conf, you will be able to register it with 'Test', 'test', 'TEST', etc., but on the first call you'll get: [Jul 16 18:12:42] NOTICE[7465]: chan_iax2.c:7367 socket_process: Rejected connect attempt from 10.0.2.231, who was trying to reach '102@' In 'iax set debug' the username sent is plainly visible to be the right one (when doing the registration and call attempt): Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: REGREQ Timestamp: 00005ms SCall: 00009 DCall: 00008 [10.0.2.231:4569] USERNAME : Test MD5 RESULT : a38988ba83a9c28590f555b7c32ebf29 The iax.conf entry is this: [tesT] type=friend secret=test callerid="test" disallow=all allow=gsm context=sipin auth=md5 qualify=no host=dynamic transfer=no | ||
Comments: | By: Digium Subversion (svnbot) 2008-07-16 17:09:16 Repository: asterisk Revision: 131491 U branches/1.4/channels/chan_iax2.c ------------------------------------------------------------------------ r131491 | bbryant | 2008-07-16 17:09:15 -0500 (Wed, 16 Jul 2008) | 6 lines Fix a bug in iax2 registration that allowed peers to register with case-insensitive names (user_cmp_cb and peer_cmp_cb are now both case-sensitive). (closes issue ASTERISK-12393) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=131491 |