Daniel-Constantin Mierla writes: > The group modules has a function get_user_group() that sets to a PV an > integer value -- just as example to start -- also, action.c has > do_assign() using same mechanism.
yes, in case of get_user_group, result is assigned to an avp and in dp_translate result is assigned to a pseudo variable that can be an avp, script var or two core pseudo vars. if you look at the code of dp_translate, you will see quite complicated testing and what to do depending on which kind of pseudo variable is receiving the result. it makes little sense that each module includes similar tests, case statements, and do_action calls. what i tried to suggest is that pvar.h would include a function that can be used to set a value to ANY kind of pseudo variable provided that the pv is such that it can be assigned a new value. -- juha _______________________________________________ Devel mailing list [email protected] http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
