#!/bin/bash
var=$(< number_list)
for i in $var
do
echo "calling to $i "
echo "calling to $i " > freecalls.logs
`asterisk -x "originate Local/$i@india extension $i@india2"`
sleep 2
done
#######################
contenido de number_list
100
102
123
109
234
dial plan esto solo timbra la llmada porque el timeout es 5 segundos
[india]
exten=>_x.,1,verbose( calling to ${EXTEN})
same=>n,Set(CALLERID(num)=447589975480)
same=>n,Dial(SIP/+${EXTEN}@cpeak,5)
same=>n, Noop(codigo de colgado ${HANGUPCAUSE})
same=>n,hangup()
[india2]
exten=>_x.,1,Hangup()
No hay comentarios:
Publicar un comentario