[OpenSIPS-Devel] SF.net SVN: opensips:[6057] trunk

Anca Vamanu anca at opensips.org
Tue Sep 1 18:58:22 CEST 2009


Revision: 6057
          http://opensips.svn.sourceforge.net/opensips/?rev=6057&view=rev
Author:   anca_vamanu
Date:     2009-09-01 16:58:22 +0000 (Tue, 01 Sep 2009)

Log Message:
-----------
- added context meaning to pseudovariables - a new token added in front of the pv type name that specifies the context where the pv should be taken from
- the implementation is made general - with a mechanism of registering pv context functions
- for now there are 2 pv contexts: reply and request, registered by the tm module
	- ex: referencing $(<request>ru) from a reply route will get the Request-URI from the request
		      the <reply> context can be used from failure route to access information from the reply
			  - changed the pv getf function and added a wrapper function for pv setf function to call the context getter function before
			  - changed the modules that used the pv set and get functions directly to use the wrappers (all future usages should use this wrappers and not the functions directly)

Modified Paths:
--------------
    trunk/action.c
    trunk/main.c
    trunk/modules/aaa_radius/aaa_radius.c
    trunk/modules/alias_db/alookup.c
    trunk/modules/cfgutils/cfgutils.c
    trunk/modules/dispatcher/dispatch.c
    trunk/modules/group/re_group.c
    trunk/modules/sst/sst_handlers.c
    trunk/modules/tm/tm.c
    trunk/pvar.c
    trunk/pvar.h


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list