                Server callback feature
                    	READ ME
                 (c) Link Guard Solutions
                        2000

To use callback feature you need to meet folowing requirements:

1) Have ISP or Gold SafeFire PPP license (or non-finished 30 days evalutation term)
2) Enable server authentication by adding auth.reqauth=1 line to your configuration file ppp section (Note: sample server files already has such a line)
3) Enable Multiuser authenticationg by adding authbase= line to your configuration file ppp section
4) Use Authentication Database plugin that supports callback (The only one available for now is pla_rexx)
5) Enable server callback mode by adding callback.mode=SERVER line to your configuration file ppp section
6) Set up callback.chat to perform dial out. Phone to dial will be stored in "\T" variable. Usually one can use default settings for callback.chat.

rcb.scr script is supplied to use callback feature. authbase line to use script must look like the next:
auth.server.authbase=pla_rexx,rcb.scr,auth_ppp

rcb.scr uses PAP.SCT/CHAP.SCT files with extended syntax. If user is allowed to perform callback, callback option must be specified as parameter in the file.
Callback option has following format:
CALLBACK:<cbtype>[,<phone>,<phone>,...]
No spaces or '#' chars are allowed in callback option.
cbtype must be one of the following:
1   User can not use callback
2   User supply phone number by himself (no phones needed to be specified)
3   User has fixed callback number (only one phone number has to be specified)
4   User can select one of the multiple fixed phone numbers (listed)
phone is phone number
Examples of user strings follows:
-----------pap.sct--------
john    *   johnpass    CALLBACK:1      	#Callback is not allowed
admin   *   dfG4Sg4     CALLBACK:2      	#Callback for any locaiton is allowed for admin
user    *   user        CALLBACK:3,222-3344 #Callback is allowed to user phone number
boss    *   b           CALLBACK:4,222,333,444  #Callback to one of numbers is allowed
noc     *   noc                             #Callback is not allowed
dis     *   dis         CALLBACK:1,222,333,444 #Callback is disabled
sing    *   sing        CALLBACK:3,222,333,444 #Callback is limited. Warning will be issued, only 222 number will be used
wrong   *   wrong       CALLBACK:3, 222     #Can't have spaces
wrong2  *   wrong2      CALLBACK:3,222#333  #Can't have #. 333 will be treated as comment

