Rule 0 ^9... 2399
translate called 1
Rule 0 ^0322399... 2399
dial-peer voice 1002 pots
description <<PSTN calls>>
translate-outgoing calling 3
Dialing a local Cebu number like 9032239XXX and CCM is sending all dialed digits to local gateway.It seems call is being routed to PSTN and since this is our range DID
call is coming back using the PSTN PRI and hitting transalation rule 1 which coverting the called number to 7 digit which is finally routed to CCM using our voip
My question is why translation rule 3 not matched when calling the number first and is translation rule 1 being matched during outgoing or when during call returning from PSTN.
(As per my debug can see call going out through PSTN and matching translation rule 1).
Any help will be appreciated.