https://www.forbes.com/forbes/2006/0410/063.html?sh=85b4f7b4...
The subtitle is "Want to build a phone company for $100? Give Mark Spencer a ring?"
YMMV because this article was published in 2006 and Digium, the parent co was sold in 2018. But the thinking about the process is still relevant and there is a book on Asterisk on Amazon....
HTH