How to register users from regfile
From Yate Documentation
The easiest way to register users is to use regfile module. This module routes calls only to the registered users. For routing outside to other numbers/outside the system you will have to use another module like regexroute.
This is done from configuration file called regfile.conf. For each user you can create section with username that will contain the associated password.
[general] file=/path/filename [username] password=my_secret_password ;Modify caller name callername=name
For more information please see regfile module.