[Home]

Summary:ASTERISK-14860: Modifieied CALLERID(num) is not logged into CDRs as expected
Reporter:Dicky S (dickys)Labels:
Date Opened:2009-09-22 06:15:41Date Closed:2011-06-07 14:01:06
Priority:MajorRegression?No
Status:Closed/CompleteComponents:CDR/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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. :-)
Comments:By: Leif Madsen (lmadsen) 2009-09-22 07:58:26

This is a feature request without a provided patch, thus we must close this issue now.