Command ping - Pepelux/sippts GitHub Wiki

Usage

$ sippts ping -h

Target:
  -i IP|HOST          Target IP address
  -r REMOTE_PORT      Remote port (default: 5060)
  -p PROTOCOL         Protocol: udp|tcp|tls (default: udp)
  -proxy IP:PORT      Use an outbound proxy (ex: 192.168.1.1 or 192.168.1.1:5070)

Headers:
  -m METHOD           Method used to scan: options, invite, register (default: options)
  -d DOMAIN           SIP Domain or IP address. Ex: my.sipserver.com (default: target IP address)
  -cd CONTACT_DOMAIN  Domain or IP address for Contact header. Ex: 10.0.1.2
  -fn FROM_NAME       From Name. Ex: Bob
  -fu FROM_USER       From User (default: 100)
  -fd FROM_DOMAIN     From Domain. Ex: 10.0.0.1
  -ft FROM_TAG        From Tag
  -tn TO_NAME         To Name. Ex: Alice
  -tu TO_USER         To User (default: 100)
  -td TO_DOMAIN       To Domain. Ex: 10.0.0.1
  -tt TO_TAG          To Tag
  -ua USER_AGENT      User-Agent header (default: pplsip)
  -ppi PPI            P-Preferred-Identity
  -pai PAI            P-Asserted-Identity
  -branch BRANCH      Customize Branch header
  -cid CALLID         Customize CallID header
  -cseq SEQ           Customize Seq number
  -digest DIGEST      Add a customized Digest header

Auth:
  -user AUTH_USER     Authentication user
  -pass AUTH_PASS     Authentication password

Other options:
  -local-ip IP        Set local IP address (by default try to get it)
  -n REQUESTS         Number of requests (default: non stop)
  -in INTERVAL        Wait interval seconds between sending each packet (default: 1 sec)
  -h, --help          Show this help

Examples

$ sippts ping -i 192.168.1.137

[✓] Target: 192.168.1.137:5060/UDP

Press Ctrl+C to stop

PING 192.168.1.137 using method OPTIONS
[2024-05-16 10:26:10 UTC] 404 Not Found from 192.168.1.137 cseq=1 time=0.006142ms
[2024-05-16 10:26:11 UTC] 404 Not Found from 192.168.1.137 cseq=2 time=0.005523ms
[2024-05-16 10:26:12 UTC] 404 Not Found from 192.168.1.137 cseq=3 time=0.008891ms
[2024-05-16 10:26:13 UTC] 404 Not Found from 192.168.1.137 cseq=4 time=0.006352ms