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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 15 15:21:36 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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-07-09 10:42 CDT
Last Modified:              2009-07-15 15:21 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0107809) svnbot (reporter) - 2009-07-15 15:21
 https://issues.asterisk.org/view.php?id=15476#c107809 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 206705

_U  branches/1.6.0/
U   branches/1.6.0/channels/chan_sip.c

------------------------------------------------------------------------
r206705 | dvossel | 2009-07-15 15:21:35 -0500 (Wed, 15 Jul 2009) | 16
lines

Merged revisions 206702 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r206702 | dvossel | 2009-07-15 15:20:01 -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=206705 

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




More information about the asterisk-bugs mailing list