add the extension to dial to enable a bsfilter to the bsfilter response

Description

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

Zendesk Ticket IDs

None

Activity

Show:

Julien Alie September 3, 2021 at 3:10 PM

Question:
If the BSFilter search extension is disabled (commented == '1'), should exten return the value or null?

Done

Details

Priority

Assignee

Reporter

Approvers

Pascal Cadotte

Pair

Pascal Cadotte

Fix versions

Sprint

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