Hi
Please use the following config
-----------------------------------
router A configuration
voice-port lineA
connection plar 4000
!
voice-port lineB
connection plar 4001
!
dial-peer voice 4000 voip
destination 400.
session-target ipv4:routerB
!
dial-peer voice 9 pots
destination 9T
port lineA
!
dial-peer voice 8 pots
destination 8T
port lineB
!
-------------------------------
router B configuration
translation rule 1
rule 1 ^.% 9
!
translation rule 2
rule 2 ^.% 8
!
voice-port PhoneA
translate-called 1
!
voice-port PhoneB
translate-called 2
!
dial-peer voice 4000 pots
destination 4000
port PhoneA
!
dial-peer voice 4001 pots
destination 4001
port PhoneB
!
dial-peer voice 9 voip
destination 9T
session-target ipv4:routerA
!
dial-peer voice 8 voip
destinatio 8T
session-target ipv4:routerA
!
----------------------------------------
I hope this helps.
regards,
Amit.