1.生成UAC CSV文件脚本
#!/bin/bash
echo "SEQUENTIAL">users.csv
i=$1
j=$2
k=$3
while [ $k != 0 ]
do
echo "$i;[authentication username=$i password=$4];$j" >>users.csv
(( i ++ ))
(( j ++ ))
(( k -- ))
done
(( i -- ))
(( j -- ))
echo "Callingnum is $1 to $i , calledgnum is $2 to $j !"
#注释:$1是主叫起始号码,$2是被叫起始号码 $3是主被叫用户个数,$4是主叫号码鉴权密码
阅读(2149) | 评论(0) | 转发(0) |