This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # ringback.sh CHANNEL CALLERD WAITTIME MAXRETRIES RETRYTIME CONTEXT EXTENSION PRIORITY DELAY SETVAR | |
| # bash ringback.sh "PJSIP/0232618@cuprox" "\"Ring Back\" <17070>" "30" "1" "30" "echo-test" "s" "1" "10" "FILE=Fax.tiff" | |
| CHANNEL=${1} | |
| CALLERID=${2} | |
| WAITTIME=${3} | |
| MAXRETRIES=${4} | |
| RETRYTIME=${5} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| requiredversion 2.0 | |
| package require httpios 1.0 | |
| # ----------------------- | |
| # Initialization | |
| # ----------------------- | |
| proc init { } { | |
| global param | |
| set param(interruptPrompt) true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source "tmpsys:lib/tcl/http.tcl" | |
| # Set URL | |
| set url "http://webhook.site/41fedca7-6b73-4214-90e4-d15f16b622f2" | |
| # Set POST body | |
| set body "loop_resistance_ohms{port=\"0/0/3\"} 447\n" | |
| # Build request | |
| set Token [::http::geturl $url -type "text/plain" -query $body ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Cisco Config | |
| ! | |
| aaa new-model | |
| ! | |
| aaa authentication login default local | |
| aaa authentication enable default enable | |
| aaa authentication ppp default group radius | |
| aaa authorization console | |
| aaa authorization exec default local if-authenticated |
OlderNewer