Autodial with ssh

i create ssh like to sample
i want create report file for no answer call
anybody help to me?
#!/bin/bash
#Variables
sounds=/var/lib/asterisk/sounds/
rOut=/var/spool/asterisk/outgoing/
rUser=asterisk
rGroup=asterisk
nFile=call0.csv
rtry=60
stime=3
wtime=60
mtry=2

#############################################
for nums in $(cat $nFile)
do

            num=`echo $nums | awk -F"," {'print $1'}`
            noise=`echo $nums | awk -F"," {'print $2'}`
            nTrunk=`echo $nums | awk -F"," {'print $4'}`

echo “date,$num,$noise” >> call-log0.csv
echo “Channel: DAHDI/g0/$num” >> $num.call
echo “RetryTime:$rtry” >> $num.call
echo “MaxRetries:$mtry” >> $num.call
echo “Context: campain” >> $num.call
echo “WaitTime: wtime” >> $num.call
echo “CallerID: $num” >> $num.call
echo “Extension: 300” >> $num.call
chown $rUser.$rGroup $num.call
mv $num.call $rOut
sleep $stime
done

Can you clarify what you are trying to do?

I don’t see anything about ssh despite the title.

You posted a bash script that creates call files.

For reporting you should be useing your CDR data.

i create autodial project
this bash script run a call file
but i want report for bash file
i can do report with line:
echo “date,$num,$noise” >> call-log0.csv
and view this report-----------------> Sun Oct 16 19:05:32 IRST 2016,09122785770
but do not show answer or no answer call

can you help me

Use the Asterisk CDR.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+12+CDR+Specification

Most likely you already have it logging in /var/log/asterisk/cdr-csv or /var/log/asterisk/cdr-custom