]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Fri, 12 Jan 2024 18:29:19 +0000 (18:29 +0000)
commitf19b74ad31d6b6ff9d06cb8048706ce40710bb82
tree353ddad5bf126695f0b169dc4c6f7c2d8152e537
parent989e61890a9488e1becafa80f6b99b7cc99e021c
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`.

(cherry picked from commit f8212d4594b8af24db896d8988f734e2c51694f6)
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