Regfile
From Yate Documentation
(Difference between revisions)
(→Registration Module) |
|||
Line 24: | Line 24: | ||
; route setups the call.route handler priority | ; route setups the call.route handler priority | ||
route=100 | route=100 | ||
− | + | ; file: string. An auxiliary conf file used to save and load from it autocreated and registered entries | |
+ | ; If file don't exists the registered entities will be lost on reload | ||
+ | ;file=/path/filename | ||
'''NOTE:''' If you want to limit the access to make calls only to autenticated users you have to setup in regexroute.conf in section [default] this line: | '''NOTE:''' If you want to limit the access to make calls only to autenticated users you have to setup in regexroute.conf in section [default] this line: | ||
${username}^$=-;error=noauth | ${username}^$=-;error=noauth |
Revision as of 14:44, 4 October 2012
Registration Module
Regfile is a registration module. It can be used for autentication, registration, and routing of users from a file. Is provided as a demo module for people who want to develop their own autentication, registration, or routing module. The config file is regfile.conf
; you have to put username as a category and password into key password [username] ;password=something
i.e. to register my Grandstream Budgetone SIP phone, with username bt101, I have:
[bt101] password=mysecretpass
There is however the special [general] section
[general] ; auth setups the user.auth handler priority auth=100 ; register setups the user.register and user.unregister ; handlers priority register=100 ; route setups the call.route handler priority route=100 ; file: string. An auxiliary conf file used to save and load from it autocreated and registered entries ; If file don't exists the registered entities will be lost on reload ;file=/path/filename
NOTE: If you want to limit the access to make calls only to autenticated users you have to setup in regexroute.conf in section [default] this line:
${username}^$=-;error=noauth