Have you tried putting in some NoOp lines to verify the values of
${screenresult}?
Also, wouldn't you get the desired result by removing the 'g' option
from your Dial()?
You might want to add an 'h' extension for further processing on the
dead channel.