To save me reinventing the wheel, has anyone done some work in their asterisk dialplan to 'clean up' the incoming callerid data from their SIP trunk?
I'm interested in things like:
64X[localnum] -> 4[localnum]
64X[nonlocalnum] -> 0X[nonlocalnum]
642X[mobile] -> 02X[mobile]
etc etc. That's not the exact set of course, just the concept. It looks easy to do with some variable tests and what not, but if someone else has done it already... :)
(on this note, what do people use for CIDName lookup if you use it at all? just astdb with LookupCIDName() and co?)