bigbluebutton-Github/bbb-voice-conference/config/freeswitch/conf/dialplan/public/bbb_sfu.xml
prlanzarin 7d85c4f4e2 feat: add filterable identifier to FS channels originated from SFU
Use the presence_data field to annotate channels with a filterable
identifier that allows us to differentiate SIP.js channels from SFU
ones.

The motivation: allow metrics exporters/instrumentations/etc to
generate comparison metrics (eg.: mediaStats, usage) between the default
bridge and the experimental one without having to do multiple or overly
verbose json_api or mod_command/fs_cli calls to filter channels out.
2022-05-12 13:08:11 +00:00

12 lines
571 B
XML

<include>
<extension name="bbb_webrtc_call" continue="true">
<condition field="${sip_user_agent}" expression="bbb-webrtc-sfu" break="on-false">
<action application="set" data="presence_data=from_bbb-webrtc-sfu"/>
<action application="set" data="bbb_authorized=true"/>
<action application="set" data="rtp_manual_rtp_bugs=ACCEPT_ANY_PACKETS"/>
<action application="set" data="jb_use_timestamps=true"/>
<action application="transfer" data="${destination_number} XML default"/>
</condition>
</extension>
</include>