Implements dialplan application bind_event.
Usage for fs_cli:
originate {execute_on_originate='bind_event CHANNEL_HANGUP_COMPLETE log info TEST 1'}user/1000 &echo
Usage for XML dialplan:
<action application="bind_event_app" data="CHANNEL_HANGUP_COMPLETE log info TEST APP SYNC"/>
<action application="bind_event_app_async" data="CHANNEL_CALL_STATE log info TEST APP ASYNC"/>
<action application="bind_event_api" data="CHANNEL_HANGUP_COMPLETE log info TEST API"/>
This will cause FreeSWITCH execute log info TEST 1 when channel dies.
^{channel-variable-name}
will be expanded to channel-variable-name value when binded application/api will be executed
!{event-header-name}
will be expanded to event-header-name value when binded application/api will be executed
Module is belt as part of FreeSWITCH source tree.
To add mod_dpevents to build process follow next steps in FreeSWITCH source tree root:
git branch devel-mod_dpevents
git checkout devel-mod_dpevents
git submodule add -- https://github.com/kvishnivetsky/freeswitch-mod_dpevents.git src/mod/applications/mod_dpevents
- edit your
configure.ac
and add toAC_CONFIG_FILES
sectionsrc/mod/applications/mod_dpevents/Makefile
- edit your
modules.conf
and addapplications/mod_dpevents
- build FreeSWITCH as usual:
./bootstrap.sh
and so on....
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.