#!/bin/bash DNES=`date +%Y%m%d` NUM=`echo "$1"'446'` TERAZ=`date +%H%M` TERAZH=`date +%k | awk -F' ' '{print $1}'` TERAZM=`date +%M` DIR="/home/web/www.guri.sk/tracker" rm -rf $DIR/$1.ucall cat <$DIR/$1.ucall Channel: Local/$1@budenie CallerID: Tracker <554> MaxRetries: 0 RetryTime: 180 WaitTime: 12 # # Assuming that your outgoing call logic is kept in the # context called [outgoing] # Context: extra Extension: 997$NUM Priority: 1 end. #chmod 666 /home/web/digitale.guri.sk/temp/$1.call # format: 200611082215.30 chmod 666 $DIR/$1.ucall #/usr/bin/touch -t $DAT $DIR/$1.ucall rm -rf /var/spool/asterisk/outgoing/$1.ucall cp -p $DIR/$1.ucall /var/spool/asterisk/outgoing/