Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,22 @@ string Executes an app for the purpose of postprocessing recorded audio. The rea
<action application="set" data="record_post_process_exec_app=lua::vm_test.lua" />
```

```xml
<action application="set" data="record_post_process_exec_app=system:/path/script.sh" />
```

> **Runs a FreeSWITCH *application* or an external *system* command _after_ `record_session` finishes — even when the A-leg hangs up first and the dialplan stops.**

### Syntax

```text
record_post_process_exec_app=<app-spec>
```

`<app-spec>` supports two distinct forms:

| Purpose | Prefix | Example |
| --------------------------- | ------------- | --------------------------------------------------------------------------------- |
| Call a FreeSWITCH app | `<app>:[<module>::]<args>` | `lua::vm_test.lua` |
| Execute an OS-level command | `system:` | `system:/opt/scripts/convert_upload.sh ${record_path} ${uuid}` |