Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- sip_user="$1"
- host="$HOSTNAME"
- (
- echo -e "auth ClueCon\n\n"
- sleep .2
- echo -e "
- sendevent NOTIFY
- profile: internal
- content-type: application/simple-message-summary
- event-string: resync
- user: $sip_user
- host: $host
- content-length: 2
- "
- sleep .2
- echo "~close"
- ) | telnet -e "~" localhost 8021
Add Comment
Please, Sign In to add comment