Advertisement
rafaelsnsa

SIPP_Script

Jul 5th, 2018
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.93 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # SIPP
  4. # README: https://pastebin.com/Lrj2FB8n
  5. # DOC: http://sipp.sourceforge.net/doc/reference.html
  6.  
  7. mode=$1
  8. m=1     # Set the number of calls the test will processed;
  9. r=1     # Set the call rate (in calls per seconds)
  10. l=1     # Set the maximum number of simultaneous calls
  11. d=1000  # Length of call;
  12.  
  13. src_ip=172.16.0.1
  14. dst_ip=172.16.0.2
  15.  
  16. dst_number=01234567890
  17. src_number=09876543210
  18.  
  19. port=5060
  20.  
  21.  
  22. if [ $mode ]; then
  23.     case "$mode" in
  24.         uas)    echo "Initiating SIPP in $mode mode."
  25.                 sipp -sn uas -watchdog_minor_threshold 1000 -rtp_echo -p $port
  26.                 ;;
  27.         uac)    echo "Initiating SIPP in $mode mode."
  28.                 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
  29.                 ;;
  30.         *)      echo "Usage $0 <uas|uac>"
  31.                 ;;
  32.         esac
  33. else
  34.     echo "Usage $0 <uas|uac>"
  35. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement