How to register users from regfile
The easiest way to register users is to use regfile module.
This module routes calls only to the registered users. For routing to other numbers/outside the system you will have to use another module like regexroute.
Set the users in 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