This file contains 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 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 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
# API documentation - https://developer.emfcamp.org/schedule | |
from fpdf import FPDF | |
# Sample data | |
data = { | |
"stage-a": [ | |
{ | |
"title": "Exploring Quantum Computing", | |
"speaker": "Alice Johnson", |
This file contains 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
Mar 11 19:26:43.136: ISDN Se0/1/0:15 EVENT: process_pri_call: call id 0x8008, number 1000, Guid 03E763438024, speed 0, call type VOICE, redial No, CSM call No, pdata Yes | |
Mar 11 19:26:43.144: ISDN Se1/0:15 EVENT: process_rxstate: ces/callid 1/0x7 calltype 2 CALL_INCOMING | |
Mar 11 19:26:43.144: ISDN Se1/0:15 EVENT: call_incoming: call_id 0x0007, Guid = 047636128008 | |
Mar 11 19:26:43.148: ISDN Se1/0:15 EVENT: UserIdle: callid 0x7 received ACCEPT_CALL (0x13) | |
Mar 11 19:26:43.148: CSM: MODEM_REPORT from 1/0:0, call_id=0x7, event=0x1, cause=0x0, dchan_idb=0x7144AAD0 | |
Mar 11 19:26:43.148: CSM: called_number '1000' modem_pool 703DE104 deny_call FALSE | |
Mar 11 19:26:43.148: CSM: Next free modem = 2/0; statbits = 80010020 | |
Mar 11 19:26:43.148: Modem 2/0 CSM: modem is allocated, modems free=5 | |
Mar 11 19:26:43.148: Modem 2/0 CSM: Incoming call from 1001 to 1000, id 0x7 | |
Mar 11 19:26:43.148: Modem 2/0 CSM: (CSM_PROC_IDLE)<--ISDN_CALL |
This file contains 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
esphome: | |
name: esphome-boiler | |
platform: ESP32 | |
board: esp32dev | |
# Enable logging | |
logger: | |
# Enable Home Assistant API | |
api: |
This file contains 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
! Configure the E1/T1 cards to use T1 | |
! | |
card type t1 0 1 | |
card type t1 1 | |
! | |
! | |
! Set the default ISDN switch type | |
! | |
isdn switch-type primary-ni | |
! |
This file contains 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
! Configure the E1/T1 cards to use E1 | |
! | |
card type e1 0 1 | |
card type e1 1 | |
! | |
! | |
! Set the default ISDN switch type | |
! | |
isdn switch-type primary-net5 | |
! |
This file contains 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
Action: Login | |
Username: USER | |
Secret: PASSWORD | |
ActionID: 0 | |
Asterisk Call Manager/5.0.3 | |
Response: Success | |
ActionID: 0 | |
Message: Authentication accepted |
This file contains 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
import time | |
from settings import login, connection | |
from asterisk.ami import AMIClient,AutoReconnect | |
def ami_disconnected(client, response): | |
print(f"The AMI has disconnected: {response}") | |
def event_notification(source, event): | |
print(f"Event: {event}") |
NewerOlder