Hi, I am trying to play a sound file from AWS S3. The URL is something like this http://example.org?foo=bar&a=b. The issue seems to be that as soon as Asterisk see's the & it assumes there is a new file and the a=b is not sent along. I tried doing \& but that did not work. Does anyone know a way of telling Asterisk that & is part of the URL and to pass it along as a string? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20220116/e8325ce8/attachment.html>
On 1/16/22 2:19 PM, Dovid Bender wrote:> Does anyone know a way of telling Asterisk that & is part of the URL > and to pass it along as a string?Try enclosing the URL in single quotes, Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20220116/a2824e19/attachment.html>
${SPRINTF(%c,38)} or %26 should work, I think. On Sun, 16 Jan 2022 at 13:21, Dovid Bender <dovid at telecurve.com> wrote:> Hi, > > I am trying to play a sound file from AWS S3. The URL is something like > this http://example.org?foo=bar&a=b. The issue seems to be that as soon > as Asterisk see's the & it assumes there is a new file and the a=b is not > sent along. I tried doing \& but that did not work. Does anyone know a way > of telling Asterisk that & is part of the URL and to pass it along as a > string? >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20220118/22316632/attachment.html>