[asterisk-bugs] [Asterisk 0013091]: IAX2 username is case-insensitive in registration, but case sensitive in dialing

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jul 16 17:09:17 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13091 
====================================================================== 
Reported By:                maniax
Assigned To:                bbryant
====================================================================== 
Project:                    Asterisk
Issue ID:                   13091
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-16-2008 09:06 CDT
Last Modified:              07-16-2008 17:09 CDT
====================================================================== 
Summary:                    IAX2 username is case-insensitive in registration,
but case sensitive in dialing
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

====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 07-16-08 17:09  
---------------------------------------------------------------------- 
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 http://bugs.digium.com/view.php?id=13091)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=131491 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-16-08 17:09  svnbot         Note Added: 0090369                          
======================================================================




More information about the asterisk-bugs mailing list