Compare commits

...

7 Commits

Author SHA1 Message Date
Your Name
4ee35e3c8d Ignore swap files 2021-12-25 23:50:55 +00:00
Your Name
4c58712074 Add scripts to show current bid 2021-12-25 23:50:30 +00:00
Your Name
90fa2664a0 Add clear-queue-members script 2021-12-25 23:38:38 +00:00
Your Name
157a663989 Fix background dialing in initial menu 2021-12-25 23:38:07 +00:00
Your Name
c3575f99ec Add gott queue 2021-12-25 23:35:11 +00:00
Your Name
971deee1bc Re-add music on hold class gott 2021-12-25 22:58:10 +00:00
Your Name
b30b1653f3 Bind asterisk http to vpn IP only
We don't want to service this to the Interwebz
2021-12-25 22:57:29 +00:00
9 changed files with 31 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.swp

3
clear-queue-members.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
asterisk -x 'queue show auction' | grep wait: | awk '{ print $2; }' | xargs -I ID asterisk -x 'channel request hangup ID'

View File

@@ -732,15 +732,20 @@ exten => _X.,n,Return()
[from-eventphone] [from-eventphone]
exten => s,1,Answer() exten => s,1,Answer()
same => n,Wait(1) same => n,Wait(1)
same => n,Playback(/etc/asterisk/media/playback/e_1_herzlich_willkommen_beim_teleshopping)
same => n,GotoIf($[ "${DB(stream/open)}" != "1" ]?stream-closed,1) same => n,GotoIf($[ "${DB(stream/open)}" != "1" ]?stream-closed,1)
same => n,Background(/etc/asterisk/media/playback/e_1_herzlich_willkommen_beim_teleshopping,m)
same => n(start),Background(/etc/asterisk/media/playback/e_3_dr_cken_Sie,m) same => n(start),Background(/etc/asterisk/media/playback/e_3_dr_cken_Sie,m)
same => n,WaitExten(4) same => n,WaitExten(4)
same => n,Goto(start) same => n,Goto(start)
exten => 1,1,Goto(record-bid,1,1) exten => 1,1,Goto(record-bid,1,1)
exten => 2,1,Goto(take-question,s,1) exten => 2,1,Goto(take-question,s,1)
exten => 7,1,Wait(0.5)
same => n,Queue(gott,t)
same => n,Hangup()
exten => stream-closed,1,Wait(0.8) exten => stream-closed,1,Wait(0.8)
same => n,Playback(/etc/asterisk/media/playback/e_1_herzlich_willkommen_beim_teleshopping)
same => n,Playback(/etc/asterisk/media/playback/e_2_bei_uns_ist_leider_gerade_nichts_los) same => n,Playback(/etc/asterisk/media/playback/e_2_bei_uns_ist_leider_gerade_nichts_los)
same => n,MusicOnHold(shop,10) same => n,MusicOnHold(shop,10)
same => n,Goto(1) same => n,Goto(1)

View File

@@ -32,7 +32,7 @@ enabled=yes
; a bindaddr in order for the HTTP server to run. There is no ; a bindaddr in order for the HTTP server to run. There is no
; default value. ; default value.
; ;
bindaddr=0.0.0.0 bindaddr=172.19.27.2
; ;
; Port to bind to for HTTP sessions (default is 8088) ; Port to bind to for HTTP sessions (default is 8088)
; ;

Binary file not shown.

View File

@@ -52,6 +52,10 @@ directory=moh
[shop] [shop]
mode=files mode=files
directory=/etc/asterisk/media/moh/shop directory=/etc/asterisk/media/moh/shop
[gott]
mode=files
directory=/etc/asterisk/media/moh/gott
; ;
;[native-random] ;[native-random]
;mode=files ;mode=files

View File

@@ -561,6 +561,13 @@ timeout = 40
;member => Local/1000@default,0,John Smith,SIP/1000 ;member => Local/1000@default,0,John Smith,SIP/1000
;member => Local/2000@default,0,Lorem Ipsum,SIP/2000,no ;member => Local/2000@default,0,Lorem Ipsum,SIP/2000,no
[gott]
musicclass=gott
strategy=ringall
announce-position=no
announce-to-first-user=no
member => IAX2/stubnitz/24
[shop] [shop]
musicclass=shop musicclass=shop
strategy=ringall strategy=ringall

6
show-bid.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
echo "Content-Type: text/plain"
echo ""
asterisk -x 'queue show auction' | sed -n 's/^.*prio: \(.*\))$/Aktuelles Gebot: \1/p' | head

3
static-http/cgi-bin/bid Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
exec sudo /etc/asterisk/show-bid.sh