]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app.c: Allow ampersands in playback lists to be escaped.
authorSean Bright <sean@seanbright.com>
Tue, 7 Nov 2023 20:03:53 +0000 (15:03 -0500)
committerSean Bright <sean@seanbright.com>
Tue, 28 Nov 2023 19:51:54 +0000 (19:51 +0000)
commit6b4d7f2125c32729a1dcb6241b846588e2106bc0
treee9bc3c55798f72662be3f762097c04078bd31460
parentc25271f2ae346248af727e07b6f720d5d698e850
app.c: Allow ampersands in playback lists to be escaped.

Any function or application that accepts a `&`-separated list of
filenames can now include a literal `&` in a filename by wrapping the
entire filename in single quotes, e.g.:

```
exten = _X.,n,Playback('https://example.com/sound.cgi?a=b&c=d'&hello-world)
```

Fixes #172

UpgradeNote: Ampersands in URLs passed to the `Playback()`,
`Background()`, `SpeechBackground()`, `Read()`, `Authenticate()`, or
`Queue()` applications as filename arguments can now be escaped by
single quoting the filename. Additionally, this is also possible when
using the `CONFBRIDGE` dialplan function, or configuring various
features in `confbridge.conf` and `queues.conf`.
apps/app_authenticate.c
apps/app_confbridge.c
apps/app_playback.c
apps/app_queue.c
apps/app_read.c
apps/app_skel.c
apps/app_speech_utils.c
main/app.c
main/pbx_builtins.c