Done
Details
Priority
MediumAssignee
Julien AlieJulien AlieReporter
Pascal CadottePascal CadotteApprovers
Pascal CadottePair
Pascal CadotteFix versions
Sprint
None
Details
Details
Priority
Assignee
Julien Alie
Julien AlieReporter
Pascal Cadotte
Pascal CadotteApprovers
Pascal Cadotte
Pair
Pascal Cadotte
Fix versions
Sprint
None
Zendesk Support
Zendesk Support
Zendesk Support
Created August 25, 2021 at 1:00 PM
Updated September 13, 2021 at 2:45 PM
Resolved September 8, 2021 at 4:40 PM
At the moment a user that wants to enable or disable a bsfilter using its phone needs to do the following queries.
1. Fetch the bsfilter to know the `member_id` of the surrogate.
GET https://<hostname>/api/confd/1.1/callfilters
2. Find the extension to enable/disable a bsfilter
GET https://<hostname>/api/confd/1.1/extensions/features
Which will return this
3. Take the extension pattern from the previous GET `_*37.` and remove the "pattern" stuff to turn it into an extension using the logic here https://github.com/wazo-platform/xivo-lib-python/blob/ea57f1cac3cbcd25d74ab427b9ae271e630531a8/xivo/xivo_helpers.py#L22
4. Finally append the resulting prefix `*37` with the `member_id` of the surrogate
The result for the example above would be `*376`
The result would look like