So you want to recompile zaptel on trixbox. I have put together a script that might help. I have used this on a few custom installs and it seems to work. However, don’t kill me if it screws something up. You will need to start zaptel and amportal once the script finishes. I don’t do this for you since I like to watch for errors on startup.
rebuild-zaptel.sh.txt