Filter a channel by speaker
Learn how to filter server-side recording request for a channel by speaker.
阅读时间1 分钟最后更新于 18 小时前
To subscribe to a channel and only record certain users, filter a channel subscription by passing a list of speakers in to the channel you want to subscribe to. For example, if you have speakerA, speakerB, and speakerC in a channel, and you only want data from speakerA and speakerB, then you can filter those two users by passing them in to the filter_uris parameter, which excludes speakerC from the recording. The following code displays an example of how to filter for this scenario.
curl -x POSThttp://{{host}}/ssr/subscribe?auth_token={{auth_token}}&history=5&destination_credentials={"bucket":"bucket-name","access_key_id":"aws-access-id","secret_access_key":"aws-secret-key"}&target_uri=sip:confctl-g-.issuer.channel_name@domain.vivox.com&target_type=channel&ttl=5&filter_uris=["sip:.issuer.speakerA.@domain.vivox.com", "sip:.issuer.speakerB.@domain.vivox.com"]