[Devel] CVS commitlog: sip-server action.c cfg.lex cfg.y dset.c
dset.h
flags.c flags.h items.c items.h receive.c route.c route_struct.c
route_struct.h sip-server/scripts mysqldb.sh postgresqldb.sh
sip-server/modules/cpl-c README cpl.c cpl_env.h cpl_run.c ...
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Jan 9 12:12:57 CET 2007
User: bogdan_iancu
Date: 2007/01/09 03:12:57 PST
OpenSER CVS - Commit Details
Modified files:
. action.c cfg.lex cfg.y dset.c dset.h
flags.c flags.h items.c items.h receive.c
route.c route_struct.c route_struct.h
scripts mysqldb.sh postgresqldb.sh
modules/cpl-c README cpl.c cpl_env.h cpl_run.c
cpl_sig.c
modules/cpl-c/doc cpl-c_user.sgml
modules/mediaproxy functions.h
modules/nathelper nathelper.c
modules/registrar README lookup.c reg_mod.c reg_mod.h
save.c
modules/registrar/doc registrar_user.sgml
modules/tm h_table.c t_fwd.c t_fwd.h t_reply.c tm.c
modules/usrloc README dlist.c ucontact.c ucontact.h
udomain.c ul_fifo.c ul_mi.c ul_mod.c
ul_mod.h ul_unixsock.c usrloc.c usrloc.h
modules/usrloc/doc usrloc_user.sgml
Commit Log:
OVERVIEW:
-following some discussions with Juha regarding some extension for the branch flags, we decided it is better to have a re-design of flags in openser to allow a better flexibility and extensibility without any consistency penalties.
What we had so far:
- message flags (or transaction flags) which are transaction persistent
- a pseudo-branch flags - a set of flags from the message flags were handled by TM as branch flags (saved per branch and not only per transaction).
What we have now:
- message flags (or transaction flags) will works as they do now, but without the branch mask (as in 0.9.x versions), and the setflag, resetflag, isflagset() will be used.
- branch flags (NEW) will be saved in transaction (per branch) and saved in usrloc (per contact). A new set of functions will be added for manipulating these flags from script.
- script flags (NEW) will be no-message-related flags - they will be only script persistent and you can strictly use them for scripting. Once you exit a top level route, they will be lost. These flags are useful and they offer an option to de-congest the message flags - many flags have no need to be saved as they just reflect some scripting status.
What changes brings this:
- NAT flag will become a branch flag all the time)
- you can have custom flags to be saved into usrloc (via branch flags)
- more flags in script (via script flags)
CORE:
new script functions for operation on script and branch flags:
"setbflag"|"setbranchflag"
"resetbflag"|"resetbranchflag"
"isbflagset"|"isbranchflagset"
"setsflag"|"setscriptflag"
"resetsflag"|"resetscriptflag"
"issflagset"|"isscriptflagset"
small optimization for message flags :
do the flag range and param type checks only once at startup, instead of doing each time at runtime.
new pseudo-variables added for accessing the script and branch flags:
$bf - branch 0 flags in decimal format
$bF - branch 0 flags in hexa format
$sf - script flags in decimal format
$sF - script 0 flags in hexa format
SCRIPTS:
- location ans aliases tables have an extra column (cflags)
- increased version for these tables
CPL-C Module:
- nat_flag module parameter removed as now it is automatically imported from USRLOC module
- use for nat_flag the branch flags
MEDIAPROXY Module:
- use the nat_flag imported from usrloc in order to fetch the natted contacts
MEDIAPROXY Module:
- use the nat_flag imported from usrloc in order to fetch the natted contacts
REGISTRAR Module:
- nat_flag module parameter removed as now it is automatically imported from USRLOC module
- use_branch_flags module parameter removed as now the nat flag is all the time pushed into branch flags
- store the branch flags into usrloc when save() and restore them during lookup()
TM Module:
- branch_flag_mask module parameter removed as now there are separate branch flags which do not overlap with the message flags
- branch flags are properly restored in onreply, branch and failure route as branch 0.
USRLOC Module
- contact structure stores the branch/contact flags - these are the flags used from script and not the internal flags (which are still kept)
- branch flags are saved into DB -> extra column "cflags"
- new module parameter "cflags_column" for setting the column used for saving the branch/contact flags
- new module parameter "nat_bflag" - the branch/contact NAT flags - this is not directly used by the USRLOC module, but it is just exported to other modules which need it -> you need to configure it only one, instead of doing it for 5 modules
- simplify the loading function of the USRLOC API (no need for find_export())
- table version increased to 1004
Revision Changes Path
1.21 +27 -39 sip-server/action.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/action.c?r1=1.20&r2=1.21 ]
1.24 +15 -1 sip-server/cfg.lex
[ http://openser.cvs.sourceforge.net/openser/sip-server/cfg.lex?r1=1.23&r2=1.24 ]
1.35 +46 -5 sip-server/cfg.y
[ http://openser.cvs.sourceforge.net/openser/sip-server/cfg.y?r1=1.34&r2=1.35 ]
1.11 +91 -4 sip-server/dset.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/dset.c?r1=1.10&r2=1.11 ]
1.7 +29 -3 sip-server/dset.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/dset.h?r1=1.6&r2=1.7 ]
1.3 +32 -65 sip-server/flags.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/flags.c?r1=1.2&r2=1.3 ]
1.2 +10 -5 sip-server/flags.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/flags.h?r1=1.1&r2=1.2 ]
1.42 +68 -17 sip-server/items.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/items.c?r1=1.41&r2=1.42 ]
1.27 +8 -2 sip-server/items.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/items.h?r1=1.26&r2=1.27 ]
1.8 +18 -34 sip-server/modules/cpl-c/README
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/cpl-c/README?r1=1.7&r2=1.8 ]
1.20 +1 -6 sip-server/modules/cpl-c/cpl.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/cpl-c/cpl.c?r1=1.19&r2=1.20 ]
1.3 +1 -2 sip-server/modules/cpl-c/cpl_env.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/cpl-c/cpl_env.h?r1=1.2&r2=1.3 ]
1.6 +3 -2 sip-server/modules/cpl-c/cpl_run.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/cpl-c/cpl_run.c?r1=1.5&r2=1.6 ]
1.9 +3 -4 sip-server/modules/cpl-c/cpl_sig.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/cpl-c/cpl_sig.c?r1=1.8&r2=1.9 ]
1.9 +2 -23 sip-server/modules/cpl-c/doc/cpl-c_user.sgml
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/cpl-c/doc/cpl-c_user.sgml?r1=1.8&r2=1.9 ]
1.8 +4 -3 sip-server/modules/mediaproxy/functions.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/mediaproxy/functions.h?r1=1.7&r2=1.8 ]
1.27 +3 -3 sip-server/modules/nathelper/nathelper.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/nathelper/nathelper.c?r1=1.26&r2=1.27 ]
1.18 +74 -112 sip-server/modules/registrar/README
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/registrar/README?r1=1.17&r2=1.18 ]
1.18 +2 -51 sip-server/modules/registrar/doc/registrar_user.sgml
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/registrar/doc/registrar_user.sgml?r1=1.17&r2=1.18 ]
1.15 +4 -13 sip-server/modules/registrar/lookup.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/registrar/lookup.c?r1=1.14&r2=1.15 ]
1.24 +2 -12 sip-server/modules/registrar/reg_mod.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/registrar/reg_mod.c?r1=1.23&r2=1.24 ]
1.14 +1 -2 sip-server/modules/registrar/reg_mod.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/registrar/reg_mod.h?r1=1.13&r2=1.14 ]
1.38 +41 -47 sip-server/modules/registrar/save.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/registrar/save.c?r1=1.37&r2=1.38 ]
1.13 +1 -3 sip-server/modules/tm/h_table.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/tm/h_table.c?r1=1.12&r2=1.13 ]
1.29 +13 -24 sip-server/modules/tm/t_fwd.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/tm/t_fwd.c?r1=1.28&r2=1.29 ]
1.7 +1 -6 sip-server/modules/tm/t_fwd.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/tm/t_fwd.h?r1=1.6&r2=1.7 ]
1.34 +12 -8 sip-server/modules/tm/t_reply.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/tm/t_reply.c?r1=1.33&r2=1.34 ]
1.47 +2 -43 sip-server/modules/tm/tm.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/tm/tm.c?r1=1.46&r2=1.47 ]
1.11 +101 -84 sip-server/modules/usrloc/README
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/README?r1=1.10&r2=1.11 ]
1.16 +7 -20 sip-server/modules/usrloc/dlist.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/dlist.c?r1=1.15&r2=1.16 ]
1.10 +24 -2 sip-server/modules/usrloc/doc/usrloc_user.sgml
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/doc/usrloc_user.sgml?r1=1.9&r2=1.10 ]
1.21 +82 -71 sip-server/modules/usrloc/ucontact.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/ucontact.c?r1=1.20&r2=1.21 ]
1.13 +7 -7 sip-server/modules/usrloc/ucontact.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/ucontact.h?r1=1.12&r2=1.13 ]
1.31 +45 -40 sip-server/modules/usrloc/udomain.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/udomain.c?r1=1.30&r2=1.31 ]
1.13 +2 -2 sip-server/modules/usrloc/ul_fifo.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/ul_fifo.c?r1=1.12&r2=1.13 ]
1.3 +2 -2 sip-server/modules/usrloc/ul_mi.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/ul_mi.c?r1=1.2&r2=1.3 ]
1.23 +25 -3 sip-server/modules/usrloc/ul_mod.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/ul_mod.c?r1=1.22&r2=1.23 ]
1.10 +3 -2 sip-server/modules/usrloc/ul_mod.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/ul_mod.h?r1=1.9&r2=1.10 ]
1.12 +2 -2 sip-server/modules/usrloc/ul_unixsock.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/ul_unixsock.c?r1=1.11&r2=1.12 ]
1.5 +25 -104 sip-server/modules/usrloc/usrloc.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/usrloc.c?r1=1.4&r2=1.5 ]
1.3 +5 -3 sip-server/modules/usrloc/usrloc.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/modules/usrloc/usrloc.h?r1=1.2&r2=1.3 ]
1.9 +3 -2 sip-server/receive.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/receive.c?r1=1.8&r2=1.9 ]
1.15 +46 -1 sip-server/route.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/route.c?r1=1.14&r2=1.15 ]
1.8 +20 -1 sip-server/route_struct.c
[ http://openser.cvs.sourceforge.net/openser/sip-server/route_struct.c?r1=1.7&r2=1.8 ]
1.10 +4 -1 sip-server/route_struct.h
[ http://openser.cvs.sourceforge.net/openser/sip-server/route_struct.h?r1=1.9&r2=1.10 ]
1.50 +5 -3 sip-server/scripts/mysqldb.sh
[ http://openser.cvs.sourceforge.net/openser/sip-server/scripts/mysqldb.sh?r1=1.49&r2=1.50 ]
1.57 +5 -3 sip-server/scripts/postgresqldb.sh
[ http://openser.cvs.sourceforge.net/openser/sip-server/scripts/postgresqldb.sh?r1=1.56&r2=1.57 ]
More information about the Devel
mailing list