CEL Billing

Hi all,

I would like to make a listing of incoming/outgoing calls
In order to do that I only have CELs inserted into a MySQL table

My problem is:
How to isolate the incoming and outgoing calls lines and just ignore the calls made ​​on local channel ?


Nobody use CEL in order to consolidate calls details?