in the attach I've put scheme of my network and also configuration of my Gateway and CME. From outside I can reach all phones (IP and analog phones). User behind PBX dial 0 (zero) when they want call any outside number as well dial IP phones. IP phones dial any number without any prefix. Problem are: when PBX users dial some outside number which start as local numbers for example 214... they reach locals on PBX, also when they dial short code (122) they got local. PBX is a "black box" and we cannot do anything with it. So is there any way to do some configuration on a gateway or CME to solve problems.
My questions are:
1. Must I have dial-peer for any phones behind PBX on "port 0/2/0:15"?
2. Problem with transfer call on IP phones. When somebody got a call from outside and want to transfer to other Ip phone the call went out!? I suppose it is becouse of "dialplan-pattern 1 xx286... extension-length 3". But how can I solve that IP phones when call outside has their CLID.