[asterisk-bugs] [Asterisk 0014668]: register: '/' in username not supported

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Mar 19 07:16:45 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14668 
====================================================================== 
Reported By:                Netview
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14668
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 182123 
Request Review:              
====================================================================== 
Date Submitted:             2009-03-15 05:02 CDT
Last Modified:              2009-03-19 07:16 CDT
====================================================================== 
Summary:                    register: '/' in username not supported
Description: 
My VoIP-Provider 'bluesip.net' needs a username in the following way:
'bluesip/name'

sip.conf:
...
register => bluesip/name:secret at bluesip.net/bluesip 

But the register attempt is rejected with:
chan_sip.c:6542 sip_register: Format for registration is
[transport://]user[:secret[:authuser]]@domain[:port][/extension][~expiry]
at line 69

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

---------------------------------------------------------------------- 
 (0101966) ffs (reporter) - 2009-03-19 07:16
 http://bugs.digium.com/view.php?id=14668#c101966 
---------------------------------------------------------------------- 
This bug is not related to bugid# 14025, but the method of how the
'callback' parameter is parsed is broken as it supposes that '/' is a
reserved character for all fields of the register line which is not true.

Moving the callback parsing some lines and only search within the hostname
part of the register string fixes the problem (For version 1.6.1.0-RC2 move
after the "*hostname++ = '\0';" line and change 'buf' to 'hostname').

A patch will follow as soon as I'm approved to upload... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-19 07:16 ffs            Note Added: 0101966                          
======================================================================




More information about the asterisk-bugs mailing list