Guest User

Untitled

a guest
May 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2. sip_user="$1"
  3. host="$HOSTNAME"
  4. (
  5. echo -e "auth ClueCon\n\n"
  6. sleep .2
  7. echo -e "
  8. sendevent NOTIFY
  9. profile: internal
  10. content-type: application/simple-message-summary
  11. event-string: resync
  12. user: $sip_user
  13. host: $host
  14. content-length: 2
  15.  
  16. "
  17. sleep .2
  18. echo "~close"
  19. ) | telnet -e "~" localhost 8021
Add Comment
Please, Sign In to add comment