-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MOD DIALPLAN v2.2: New Dialplan Features #794
base: master
Are you sure you want to change the base?
Conversation
* 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.
…SIPS#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
Sorry I totally missed database schema CREATE TABLE IF NOT EXISTS |
Hi Bogdan, in which opensips version this feature will be introduced? Thank you |
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 Wrong rule selected in dialplan translation when both string and regexp rules are matched #696 Wrong rule selected in dialplan translation when both string and regexp rules are matched #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:
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