Hermann,
The primary difference between the gui asterisk distros (PIAF, trixbox, elastix,etc) is where the config files are kept, what they are named, and what other files they include themselves. The underlying dialplan code is all the same. So to answer your question, yes, you can take the code from the VDP generated context in trixbox and move that code into the appropriate file in a “vanilla” asterisk system and it will work the same. Hope this helps.
Kevin