[OpenSIPS-Devel] [opensips] MOD DIALPLAN v2.1.2: New Dialplan Features (#794)

Parantido De Rica notifications at github.com
Mon Feb 15 16:46:48 CET 2016


- Rules preload/translate alghoritm reworked: no more needs to have different buckets for REGEXP and BEST MATCH ones. All rules belong from same bucket. This way opens to many different scenarios and future development without afflicting performances (this rework will also fix issue #696 https://github.com/OpenSIPS/opensips/issues/696).
- New "match_var" database column introduced. This column will override "src/dest" dp_translate parameter when filled. It respects same syntax (wrong syntax will cause rule to being discarded at preload time).
- New "matched_pvar" AVP introduced. It will be filled with last matched rule id. AVP name can be set by modparam directive:

		modparam("dialplan", "matched_pvar", "$avp(dp_ruleid)")

- New "continue_search" database column introduced. When filled to "1", rule matching will continue through other rules. ATTRS and MATCHED_PVAR will be updated as soon as rule matches (next rule match will works on PVAR updated values). After a dp_translate ATTRS and MATCHED_PVAR will be updated with last rule match values.

All new features and code rework default behaviour respects old syntaxes. No database entries or opensips.cfg scripts needs to be changed on module
upgrade
You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSIPS/opensips/pull/794

-- Commit Summary --

  * MOD DIALPLAN v2.1.2:

-- File Changes --

    M modules/dialplan/dialplan.c (237)
    M modules/dialplan/dialplan.h (22)
    M modules/dialplan/dp_db.c (201)
    M modules/dialplan/dp_db.h (23)
    M modules/dialplan/dp_repl.c (268)

-- Patch Links --

https://github.com/OpenSIPS/opensips/pull/794.patch
https://github.com/OpenSIPS/opensips/pull/794.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/794
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160215/2c70ab5c/attachment.htm>


More information about the Devel mailing list