[asterisk-bugs] [Asterisk 0015476]: callerid(num) is wrong when username is missing

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 15 15:20:04 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15476 
====================================================================== 
Reported By:                viraptor
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   15476
Category:                   Functions/func_callerid
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-07-09 10:42 CDT
Last Modified:              2009-07-15 15:20 CDT
====================================================================== 
Summary:                    callerid(num) is wrong when username is missing
Description: 
In 1.6.1.1 ${CALLERID(num)} fails when there's no username present in a sip
call.
For example for "From: <sip:123.123.123.123>", CALLERID(num) will return
number "123123123123".
1.4.X used to return an empty string in that case.
====================================================================== 

---------------------------------------------------------------------- 
 (0107806) svnbot (reporter) - 2009-07-15 15:20
 https://issues.asterisk.org/view.php?id=15476#c107806 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 206702

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r206702 | dvossel | 2009-07-15 15:20:03 -0500 (Wed, 15 Jul 2009) | 10
lines

callerid(num) is wrong when username is missing 

A domain only sip uri <sip:123.123.123.123> would return
123.123.123.123 as callid num.  Now, if the username is
missing from a uri, the callerid num field is left empty.

(closes issue https://issues.asterisk.org/view.php?id=15476)
Reported by: viraptor


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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-15 15:20 svnbot         Checkin                                      
2009-07-15 15:20 svnbot         Note Added: 0107806                          
======================================================================




More information about the asterisk-bugs mailing list