Ah OK I think I understand the confusion. There is no call charging involved.
I am looking at just a Dial plan and the hierarchical choices. In this configuration all calls are routed through one dial plan and there is basically at the moment two choices one with Emergency numbers to force them through a trunk with a correctly associated address as the first choice and another that is * with no replacement for all other calls.
I have similar installations with other clients where there is a trunk that represents a geographical location for emergency calls and they all have the same pattern, save that the emergency number is routed through a trunk registered to that address. This is used when there is more than one geographical location for a system (ie home working, multiple offices etc).
We are also using trunks to ensure that a call is made from a local code. So when a call is made to a 01202 number a trunk with 01202 code is used
In all cases we are finding that the +44 or +[anything] is failing and not connecting. I was hoping there was a method of properly substituting it and if possible routing it through a specific trunk
I was envisaging some regular expression that produced this sort of result:
Pref~trunk~Pattern~Replacement
20~a~+44~0
21~b~+48~0048
But I can not work out the syntax of the regular expression to get this to work.
Thanks
Don