pv_scriptvar2xavp(varname, xname)
Copy script variables values to a xavp.
First parameter can be '*' in order to copy all script variables. Second parameter is the name of the destination xavp. If xavp already exists it will be reset first.
Function can be used from ANY_ROUTE. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/309
-- Commit Summary --
* pv: scriptvar2xavp * pv: refresh README
-- File Changes --
M modules/pv/README (58) M modules/pv/doc/pv_admin.xml (31) M modules/pv/pv.c (17) M modules/pv/pv_svar.c (4) M modules/pv/pv_svar.h (1) M modules/pv/pv_xavp.c (61) M modules/pv/pv_xavp.h (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/309.patch https://github.com/kamailio/kamailio/pull/309.diff
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/309
Can be merged, but I would like to change the name of the new function -- it can be done in a follow up commit, after merging.
Although there few functions that uses 2 as replacement for 'to' in the name of functions, this is not the common. Then scriptvar is rather long, better use just the 'var', being the name of that variables, there is already a prefix 'pv' that points it is about pseudo-variables. For example, the new name:
``` pv_var_to_xavp(...) ```
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/309#issuecomment-136396376
Merged #309.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/pull/309#event-397500764