[filereadertest] exten => s,1,Verbose(Context: ${CONTEXT} Exten:${EXTEN}) same => n,Set(feature=${FILE(/home/test/feature-1.txt,0,1,l,u)}) same => n,Verbose(1,Using a string, feature is set to ---${feature}--- and is ${LEN(${feature})} long) same => n,Set(featurefile=/home/test/feature-1.txt) same => n,Set(feature2=${FILE(${featurefile},0,1,l,u)}) same => n,Verbose(1,Using a variable, feature2 is set to ---${feature2}--- and is ${LEN(${feature2})} long) same => n,Set(unfilteredfeat=${FILE(${featurefile},0,1,l,u)}) same => n,Set(feature3=${SHIFT(unfilteredfeat)}) same => n,Verbose(1,Using a string with shift method, feature3 is set to ---${feature3}--- and is ${LEN(${feature3})} long) same => n,set(myList=1,12,123,1234,12345,123456,A,AB,ABC,ABCD,ABCDE,ABC123) same => n,While($["${SET(rawVar=${SHIFT(myList)})}" != ""]) same => n,SET(FILE(${featurefile})=${rawVar}) same => n,SET(fileVar=${FILE(${featurefile},0,1,l,u)}) same => n,SET(hexDump=${SHELL(hd ${featurefile})}) same => n,Verbose(Before file: ---${rawVar}--- len ${LEN(${rawVar})} after file: ---${fileVar}--- LEN ${LEN(${fileVar})} hexdump:${hexDump}) same => n,EndWhile() same => n,Hangup()