Displaying 2 results from an estimated 2 matches for "featurefil".
Did you mean:
featureful
2016 Oct 17
4
Multiple readfile oddities, newlines etc
...reaks. 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})
same => n,Set(featurefile=/home/test/feature-1.txt)
same => n,Set(feature2=${FILE(${featurefile},0,1,l,u)})
same => n,Verbose(${feature2})
Both should output "radio", right? Here's the output:
-- Executing [5 at fromvoipfone201:2] Set("PJSIP/6001-00000052",
"feature=radio&qu...
2016 Oct 17
2
Multiple readfile oddities, newlines etc
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
--
Thanks in advance,