SF.net SVN: opensips:[6057] trunk

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

SF.net SVN: opensips:[6057] trunk

Anca Vamanu-2
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.

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel