October 2019, Asterisk 17.0, this is still happening
Bug updated: https://issues.asterisk.org/jira/browse/ASTERISK-26481
File is a single line unix-line UTF-8 file, with "1," (no quote marks)
hexdump output is as follows
000 2c31
002
dialplan is
same =>
I'm going to go ahead and file a bug report, 'cos something definitely
ain't right here! Bug filed:
https://issues.asterisk.org/jira/browse/ASTERISK-26481
This bit of dialplan.
exten => 5,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN})
same => n,Set(featurefile=/home/test/feature-1.txt)
On 18/10/2016, at 10:38 am, Steve Edwards wrote:
>> cat /home/test/feature-1.txt | hexdump
>
> Or just:
>
> hexdump /home/test/feature-1.txt
Heh.. yes, fair call ;)
Pete
smime.p7s
Description: S/MIME cryptographic signature
--
On Tue, 18 Oct 2016, Pete Mundy wrote:
If you want to know what is _really_ in that file (including all
invisible characters and anything else that wc etc might not count),
pipe it through 'hexdump'.
cat /home/test/feature-1.txt | hexdump
Or just:
hexdump /home/test/feature-1.txt
> On 18/10/2016, at 2:31 am, Jonathan H wrote:
>
> I have a plain text file, ASCII, unix line breaks. 1 single line, and all
> that is in it is the word "radio".
>
>
Heya Jonathan
Interesting problem!
Unfortunately I can't help with suitable dialplan code to resolve
Just by chance, I was browsing the mailing list and it looks like
Sebastian's reply made it to the list, but not to me because it's
apparently blacklisted by UCEPROTECTL3.
This is what he wrote:
> Theres always garbage in the end of the files.
> I do this when I want to read a file:
> same
sers-boun...@lists.digium.com] För Jonathan H
Skickat: den 17 oktober 2016 15:32
Till: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com>
Ämne: [asterisk-users] Multiple readfile oddities, newlines etc
I have a plain text file, ASCII, unix line breaks
I have a plain text file, ASCII, unix line breaks. 1 single line, and all
that is in it is the word "radio".
Here's some test dialplan:
exten => 5,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN})
same => n,Set(feature=${FILE(/home/test/feature-1.txt,0,1,l,u)})
same => n,Verbose(${feature})