Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # SIPP
- # README: https://pastebin.com/Lrj2FB8n
- # DOC: http://sipp.sourceforge.net/doc/reference.html
- mode=$1
- m=1 # Set the number of calls the test will processed;
- r=1 # Set the call rate (in calls per seconds)
- l=1 # Set the maximum number of simultaneous calls
- d=1000 # Length of call;
- src_ip=172.16.0.1
- dst_ip=172.16.0.2
- dst_number=01234567890
- src_number=09876543210
- port=5060
- if [ $mode ]; then
- case "$mode" in
- uas) echo "Initiating SIPP in $mode mode."
- sipp -sn uas -watchdog_minor_threshold 1000 -rtp_echo -p $port
- ;;
- uac) echo "Initiating SIPP in $mode mode."
- sipp $dst_ip -i $src_ip -s $dst_number -m $m -r $r -l $l -d $d -s $src_number -p $port -sn uac -sf scenarios/sipp_uac_basic.xml
- ;;
- *) echo "Usage $0 <uas|uac>"
- ;;
- esac
- else
- echo "Usage $0 <uas|uac>"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement