[asterisk-bugs] [Asterisk 0018709]: On cdr table Caller number in not being stored in clid and src, instead extension number is on outgoing calls.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Feb 1 03:34:56 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18709 
====================================================================== 
Reported By:                CidiRome
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18709
Category:                   CDR/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.8.2.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-01-29 19:15 CST
Last Modified:              2011-02-01 03:34 CST
====================================================================== 
Summary:                    On cdr table Caller number in not being stored in
clid and src, instead extension number is on outgoing calls.
Description: 
On version 1.6.x the cdr table used to store the caller number in the
fields clid and source on outgoing calls.

Now in version 1.8(.2.3) only the extension is stored on both those
fields.

I think at least clid should have the caller number.
====================================================================== 

---------------------------------------------------------------------- 
 (0131327) vmikhnevych (reporter) - 2011-02-01 03:34
 https://issues.asterisk.org/view.php?id=18709#c131327 
---------------------------------------------------------------------- 
We've encountered something similar - after CallerID is set in dialplan, it
is not stored in CDRs. Also at 1.8.2.3.

Sample dialplan (pstn is a peer of pstn gataway, some digits replaced by
xxx for privacy):

[PHBX_165]
exten => _X.,1,NoOp(Test call)
same => n,Set(CALLERID(all)="Caller" <0287610xxx>)
same => n,Dial(SIP/00380505556xxx at pstn,60)
same => n,Hangup

Console output:

 == Using SIP RTP CoS mark 5
    -- Executing [00380505556xxx at PHBX_165:1] NoOp("SIP/2011-00000009",
"Test call") in new stack
    -- Executing [00380505556xxx at PHBX_165:2] Set("SIP/2011-00000009",
"CALLERID(all)="Caller" <0287610xxx>") in new stack
    -- Executing [00380505556xxx at PHBX_165:3] Dial("SIP/2011-00000009",
"SIP/00380505556xxx at pstn,60") in new stack
  == Using UDPTL CoS mark 5
  == Using SIP RTP CoS mark 5
    -- Called 00380505556xxx at pstn
    -- SIP/pstn-0000000a is ringing
  == Spawn extension (PHBX_165, 00380505556xxx, 3) exited non-zero on
'SIP/2011-00000009'
       > [INSERT INTO ast_cdr
("calldate","clid","src","dst","dcontext","channel","dstchannel","lastapp","lastdata","duration","billsec","disposition","amaflags","accountcode","uniqueid")
VALUES ('2011-02-01 10:59:05','"Caller"
<260>','260','00380505556xxx','PHBX_165','SIP/2011-00000009','SIP/pstn-0000000a','Dial','SIP/00380505556xxx at pstn,60',9,0,'NO
ANSWER',3,'2011','1296550745.9')]

Caller sip peer configuration:

[2011]
callingpres=allowed_not_screened
host=dynamic
nat=yes
type=friend
accountcode=2011
context=PHBX_165
t38pt_udptl=no
callerid="Caller" <260>
language=nl
qualify=2000
defaultuser=2011 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-01 03:34 vmikhnevych    Note Added: 0131327                          
======================================================================




More information about the asterisk-bugs mailing list