10 lines
388 B
Bash
10 lines
388 B
Bash
#!/bin/bash
|
|
if pgrep sipp >/dev/null
|
|
then
|
|
echo "sipp is running"
|
|
else
|
|
cd /home/'{{ def_username }}'/sipp
|
|
#./sipp -sn uac_pcap {{ hostvars[groups['sipserver'][0]].ansible_host }} -bg -l 40
|
|
./sipp -sf call.xml {{ hostvars[groups['sipserver'][0]].ansible_host }} -r 3 -rp 90s -rtp_echo -mi {{ hostvars[inventory_hostname]['ansible_default_ipv4']['address']}} -bg
|
|
fi
|