[asterisk-dev] Abnormal behaviour in CDR ?
Franco Salvador
f.salvador at telegamma.it
Wed Aug 29 04:15:12 CDT 2007
I'm working with CDRfix5 project
(http://svn.digium.com/svn/asterisk/team/group/CDRfix5) and I notice
the following thing:
When A calls B cdr.start, cdr.answer and cdr.end time are reported
correctly, whilst when A calls an external number B through FXO line
the cdr.answer time is not when the remote peer actually answer the call
but is the time when the FXO line start a call to the remote peer.
In this case I don't know how to compute the exact time (and so the
cost) of the external call that is what usually a PBX manager want to know.
Example:
A ("FiveSevenFive" <576>) calls (02 0495952764) through a Zap/1 channel
dial at 2007-08-29 10:46:48, connect at 2007-08-29 10:47:10 end at
2007-08-29 10:47:25.
02 is the number in extension.conf used to access the external peer
whilst 0495952764 is the number of the remote peer.
extension.conf
exten=> _21,1,Dial("SIP/1/${EXTEN})
The CDR will be:
clid="FiveSevenFive" <576>
src=576
dst=020495952764
channel=SIP/576-0820db08
dstchannel=Zap/1-1
start=2007-08-29 10:46:48
answer=2007-08-29 10:46:50 <--- is not what I want
end=2007-08-29 10:47:25
It seems to me that
Ing. Franco Salvador
Design Engineer
Telegamma S.r.l.
R&D TLC Division phone: +39 0422 297 573
Via Noalese 63/b fax : +39 0422 297 579
31100 Treviso http://www.telegamma.com
ITALY mailto:f.salvador at telegamma.it
More information about the asterisk-dev
mailing list