Shell commands from DTMF during conversation

Is there a way to execute shell scripts from specific DTMF codes during a conversation between two extensions ? (FreePBX 2.5)