< Previous by Date Date Index Next by Date >
  Thread Index  

[repro-devel] Patches.


Hello All.

I rewrite old patches and add ne.
1) SVN revision 7430. Data operator==  I insist because I believe –
If problem can be, it will 
2) rev 7431. UserStore  free threading.
3) rev7432 Windows specific. Move by default db and certificate paths under
]“C:\Documents and Settings” dir. If we run repro under administrator user,
or under LocalSystem (e. g. as service ), we use “All users” subdirectory.
If we run repro under restricted  user account, we use user home directory.
Added some functions to FileSystem
4)      Rev 7433 Windows specific. We can run repro as service. Added two
command line switches: “--install-service” and “—remove-service”. If we use
–install-service switch with other switches, that switches will be used when
service started. For example: if we run “repro –install-service –l file”, 
service
will start with command line “repro –l file”.
5)      Rev 7434. Added log level “Notice” I will use it in following patches.
6)      Rev 7435. Default log type for windows – cout instead syslog.
7)      Rev 7436. Logging to Win32 event log performed on loglevel >=”NOTICE”.
Logging to windows event log will turn on if and only if we start repro as 
service.
Note that you can’t delete repro executable ( e.g. recompile ) if have windows 
event
viewer running.  In /resip/stack/StatisticsMessage.cxx,  
/resip/stack/StackThread.cxx,
WarningLog replaced into InfoLog,  in order to avoid no needed info in EventLog.
8)      Rev 7437. Common: Added command line switch “--log-path” for specify log
file path (not filename!). Default values – Windows – “Document and settings” 
subdir
(like patch 3), for other systems – current dir (“.”). Added loglevel “NOTICE”. 
Windows
specific – added possibility for logging to Win32 Event Log. Also this patch 
rearrange
Win32 service code. Creating and removing service moved form main() to separate 
functions.
9)       Rev 7438. Added possibility for restart server from webadmin .
10)      Rev 7439. Parameters table added to database. Almost all command line
parameters can be stored to database and can be edited by web interface. Command
line switches override values comes from database. New command line switch 
added –
“--no-use-parameters”, when it uses program bypass parameters table. Admin 
password
moved from user table to parameters table. Note that I’m not update MySql code 
because
I unfamiliar with it. Also in this patch I change /repro/HttpConnection.cxx, If 
we send
301 (redirect) code to client, we can direct user to any page, instead of 
index.html only. 
11)     Rev7440. Parameters BugFix


Note that one patch dependent on other and you can use next patch without 
applying previous.
Also note that is several files added to project. I add this files to VS 2005 
project, but
not to any Linux/Unix makefiles and You must add this files yourself. I plan 
install in next
week Linux on my box for checking linux builds.



Preface to next patches: I think that repro server consist of two part – 1) 
System related part –
 (main function, win32 service, logging, Database, Web etc), and stack related  
part (for example mankey)
 We need separate this parts into different files.

12)Rev 7441. *Store classes divided into two files, abstract and implementation.
13) Rev 7442. Repro.cxx splited  into two parts “Repro.cxx” with
system part and “reproMain” with stack part.
14) Rev7443.  “—no-load-web-admin” commandline switch added. (Currently broken, 
see 23)
15) Rev7444. CommandLineParser split into 2 parts: ReproConfiguration (stack 
part) and
CommandLineParser (system part)

16) Rev 7445. Rearrange UserStore. requestUserAuthInfo() moved to 
AbstractUserStore class.
17) Rev 7446. BugFix. Remove Sleep(1000) that I insert for debug purpose
18) Rev7447. Refine and rearrange code. Moving code from three locations to 
single function runRepro()
19) Rev 7444. Added very simple win32 icon to repro. Is there any painters? ?
20) Rev7449 Fix WIN32 service code bug introduced in 13)
21) Rev7450. Windows setup project changed. Changed Setup. Added install and 
remove service shortcuts.
Added remove service at uninstall. Default directory to install changed from 
\Program Files\ReproSIPProxy
to \Program Files\Resiprocate\ReproSIPProxy. Added Using.html.
22) Rev 7451. refined *Store.hxx ( bad intendation )
23) Rev 7452. Bugfix for “—no-load-web-admin”
24) Rev7453. reproMain file and function renamed to ProxyMain 
25) Rev 7454. Added class ProxyMainException. Removed all delete operators from 
ProxyMain and replaced
by auto_ptr guards. Removed all call functions exit() from ProxyMain(), we 
throw exceptions now. Remove
all call functions exit() from runRepro, we return error code now.

What I plan:
1)      Move creating WebAdminThread from reproMain to runRepro. (from stack to 
application)
2)      Move UserRecord from AbstractDb.hxx to AbstractUserStore.hxx, 
RouteRecord to AbstractRouteStore and so on.
3)      …
-- 
Best regards,
 Ruslan                          mailto:prostoruslan@xxxxxxxxx