[sr-dev] git:master:27e3ecb6: mtree: allow specifying column names per tree

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 2 08:58:07 CET 2016


Module: kamailio
Branch: master
Commit: 27e3ecb60702749837f2dc59d694933b12e3a7bd
URL: https://github.com/kamailio/kamailio/commit/27e3ecb60702749837f2dc59d694933b12e3a7bd

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-02-02T00:04:57+01:00

mtree: allow specifying column names per tree

- at least two columns must be specified, first is the one corresponding
  to tprefix
- if more than two, then the values of those columns are concatenated
  with a comma delimiter
- columns can be specified with cols attribute in mtree definition and
  they must be enclosed in quotes in order to be a valid sip parameter
  value and be separated by comma

modparam("mtree", "mtree",
  "name=mt;dbtable=mtree;cols='tprefix,tvalue1,tvalue2'")

---

Modified: modules/mtree/mtree.c
Modified: modules/mtree/mtree.h
Modified: modules/mtree/mtree_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/27e3ecb60702749837f2dc59d694933b12e3a7bd.diff
Patch: https://github.com/kamailio/kamailio/commit/27e3ecb60702749837f2dc59d694933b12e3a7bd.patch




More information about the sr-dev mailing list