-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
res_digitmap: Support suffixing prefixing extensions.
Some devices (e.g. Polycom) require that digit map entries end with a 'T' if the phone should wait for more digits, rather than complete immediately when matching that. Not all devices require this, since many (most?) are smart enough to check all matches. However, some require the T explicitly to avoid matching immediately even if other patterns could match later. To support this, a "TimeoutSuffix" option has been added to both the CLI and AMI commands to suffix patterns that are a proper prefix of another pattern with the 'T' character. The implementation here may add false positives, but it avoids false negatives.
- Loading branch information
1 parent
0545b48
commit ec73239
Showing
1 changed file
with
115 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters