Variable api on media

From FreeSWITCH Wiki
Jump to: navigation, search


Execute a FreeSWITCH API 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.

In the second usage example below, we have originated an outbound call to a local extension, where we will wait 30 seconds without ignoring media. In this case we use 'set' and not 'export'.


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

See also:

Implemented By:

Module Name Source File Last Updated
Core switch_channel.c 850f2e3