I am not sure that if it is possible or not but let me explain the situation.
The calls from PRI is forwarded to a H323 GW. IS it possible to limit the DTMF digits relayed to H323 trunk ? . For instance for the scenario o Call – PRI – Cisco Router – H323 trunk – 3th party PBX, Is there a way to configure the PRI trunk or H323 trunk such as “ allow only 5 dtmf can be transmitted during a single call ” ? Basically the router will observe the call and the dtmfs transmitted during the call and will count it till the threshold and will not relay any more or will drop the call.