api_after_bridge
Created by Ryan Harris, last modified by livem Chan on 2020.01.02
api_after_bridge
string Execute an API command after bridge.
Usage
Paging to PA System via Portaudio (with chime before and after announcement):
<extension name="paging-with-chime">
<condition field="destination_number" expression="^7243$">
<action application="set" data="bridge_pre_execute_bleg_app=playback"/>
<action application="set" data="bridge_pre_execute_bleg_data=/tmp/2_tone_chime.wav"/>
<action application="set" data="api_after_bridge=luarun post-chime.lua"/>
<action application="bridge" data="portaudio/auto_answer"/>
</condition>
</extension>
post-chime.lua
:
api = freesswitch.API()
api:execute("pa", "play /tmp/2_tone_chime.wav")