Least cost routing

This page is a work in progress; it documents my efforts to hack up some sort of script-based Least Cost Routing arrangement on my N900.

The first step is to get this working for regular PSTN access numbers over the GSM channel, so that I can use inclusive minutes rather than get charged through the nose for calling 0845, 0870 and suchlike.

In order to do that, I need to:


 * 1) intercept outgoing call, check dial string and see if we need to intervene
 * 2) if so, end the call, edit the number to suit and autoredial before I the user know or care about it