It still doesn't make sense to me why someone would program it that way, but I am sure there is a reason even though it is beyond my comprehension at this point.
. I'm saying that with a lot of things when fixing bits and pieces.
Hence why the contract with the current phone company won't be renewed.
Have completed your original post Tech Electronics. I was almost there but just needed to change the order.
Using 9 998 as a test number it looks like its routing it through the trunk group 7 with the analogue lines.
Can't test 999 as they don't accept test calls but from testing it looks like 9 999 now works which is what thy used before the mitel system was in.
Will ask them in the office to use it next time with the expectation of having to use 7 999 straight away if not.
Thanks for your help all. Can't say it's defiantly fixed yet but it looks good.