hi, please find below configure is workable in our Manila Branch. I hope this can help you.
!
voice service voip
allow-connections h323 to sip
allow-connections sip to h323
h323
sip
!
!
voice class codec 99
codec preference 1 g711ulaw
codec preference 2 g729br8
!
!
voice translation-rule 1
rule 1 // /5/
!
!voice translation-profile inbound
translate called 1
!
!
controller E1 0/0/0
framing NO-CRC4
ds0-group 0 timeslots 1-15 type r2-digital r2-compelled ani
cas-custom 0
country philippines
dnis-digits min 1 max 3
description TYPE=PRI DEST=xxx BW=2M!
!
voice-port 0/0/0:0
translation-profile incoming inbound
!
!
dial-peer voice 402 voip
description xxx
preference 1
destination-pattern 5...
voice-class codec 99
voice-class h323 1
session target ipv4:
dtmf-relay h245-alphanumeric
ip qos dscp cs5 media
no vad
!