[asterisk-users] CDR billsec issue with calls forwarded through the Local channel

Ishfaq Malik ish at pack-net.co.uk
Fri May 2 05:23:10 CDT 2014


Hi

I'm using asterisk 1.8.23.1 but I've seen this same issue in previous
versions of 1.8. I have created some work arounds but the behaviour is
incorrect.

This is the scenario:
Call comes in and goes to appropriate dialplan
In the dialplan the call is forwarded to another number using a Local
channel (and using /n ) e.g.
Dial(Local/<my-number>@outbound-context/n,60)
The number is dialled and the call is all fine.

In the CDR we have 2 entries, one for the inbound leg and one for the
outbound leg as is expected by the use of the /n

However, the outbound leg CDR entry has a billsec of 0. The CDR for the
inbound leg has the correct duration of the call in the billsec column (I'm
writing CDRs to MySQL)

This is causing issues in my billing module for obvious reasons. I'm having
to find the inbound call by matching the channel in one leg with the
dstchannel in the other leg and that is quite messy.

Would others agree that this behaviour is incorrect? Has anyone else seen
this or be able to replicate it? Am I just missing something obvious?

Thanks in Advance

Ish

-- 

Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish at pack-net.co.uk
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140502/28de7f0f/attachment.html>


More information about the asterisk-users mailing list