Skip to content

Instantly share code, notes, and snippets.

View marrold's full-sized avatar

Matthew Harrold marrold

View GitHub Profile
@marrold
marrold / ringback.sh
Created February 26, 2024 23:18
Asterisk Ringback Script
#!/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}
requiredversion 2.0
package require httpios 1.0
# -----------------------
# Initialization
# -----------------------
proc init { } {
global param
set param(interruptPrompt) true