[asterisk-bugs] [Asterisk 0015930]: Modifieied CALLERID(num) is not logged into CDRs as expected

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Sep 22 06:15:41 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15930 
====================================================================== 
Reported By:                DickyS
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15930
Category:                   CDR/General
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.26.1 
JIRA:                        
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-09-22 06:15 CDT
Last Modified:              2009-09-22 06:15 CDT
====================================================================== 
Summary:                    Modifieied CALLERID(num) is not logged into CDRs as
expected
Description: 
This "problem" has been previously logged under 0011774 and 0012786.

When you modify CALLERID(num) before a DIAL the CDR shows the original CID
number. The desired behaviour would be to show the modified CID number. For
example...

[incoming-calls]
exten=>s,1,Set(CALLERID(num)=0${CALLERID(num)})
exten=>s,2,Dial(SIP/2000)
exten=>s,3,Hangup

...is intended to prepend '0' to the CID provided by the telephone
company. The CDR shows the original CID number with no preceeding '0'.

This is because the CDR records CALLERID(ani) as opposed to CALLERID(num).
The expected behaviour can be achieved by...

[incoming-calls]
exten=>s,1,Set(CALLERID(num)=0${CALLERID(num)})
exten=>s,n,Set(CALLERID(ani)=${CALLERID(num)})
exten=>s,n,Dial(SIP/2000)
exten=>s,n,Hangup

Hope this helps someone. :-)
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-22 06:15 DickyS         New Issue                                    
2009-09-22 06:15 DickyS         Asterisk Version          => 1.4.26.1        
2009-09-22 06:15 DickyS         Regression                => No              
2009-09-22 06:15 DickyS         SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list