Skip to content

Commit daf3b21

Browse files
committed
MOD DIALPLAN v2.1.2: New Dialplan Features (same as pull request OpenSIPS#794)
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 OpenSIPS#696 OpenSIPS#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
1 parent 96f6c77 commit daf3b21

File tree

5 files changed

+463
-314
lines changed

5 files changed

+463
-314
lines changed

0 commit comments

Comments
 (0)