Hi, Here is the scenario: Originating local channel using AMI. On answering the channel, it will goes to a context. Which start to playback a file. & after hangup at h extension I am caliing an agi script which insert CDR into DB. Now the problem is when I script hangsup during payback CDR(billsec) returns currect result. But when it hangsup after playback cdr(billsec) returns 0 . Please help me to find out what I am doing wrong. Thanking you in advance -- Krunal Patel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080816/7dd40ec5/attachment.htm