Add stub tool for invoice generation (creating an invoice using account, CDR and SIM information)
Rename speakupAccount to speakup_account
Change CDR table: rename callId to call_id, change pricing_id to {pricing_info, computed_cost, computed_price}, remove connectiontype, add source, direction, leg and reason columns.
Add stub tool for CDR pricing
Add some CDR pricing tests: check if CDRs can be retrieved correctly, check if a CDR is correctly unpricable when there are no pricings.
Implement CDR pricing: retrieve SIM information, then find an applicable rule in the pricing table. If one is found, use it to price the CDR. Otherwise, throw an exception. Also add some tests for this, but many more TODO. Changes the pricing table to remove connectiontype and add a filter on source and direction. All filters are NOT NULL but can be empty to allow anything.
Don't import phone numbers of disabled SIMs; they lead to duplicates on swapped SIMs and are useless anyway
Generic workaround for a SpeakUp bug instead of a specific one
Import CDR prices too, and check them correctly against existing pricings