Skip to main content

api_on_media

Created by Ryan Harris, last modified by Attila Gulyas on 2019.11.21

api_on_media

string Execute a FreeSWITCH API command when the far end sends media, i.e. ringing or 183/SDP.

The command is executed only on channels that are not already answered. Just use export or export with nolocal: prefix to make sure it is executed when b-leg answers.

Usage

<action application="export" data="nolocal:execute_on_media=lua incrInUse.lua ${uuid}"/>