Manage queue membership for auction queue dynamically

This avoids the telephone in the studio ringing all the time
This commit is contained in:
Your Name
2020-12-12 21:12:44 +00:00
parent 4e5f2d5f61
commit 678cafc6f8
2 changed files with 3 additions and 1 deletions

View File

@@ -782,6 +782,7 @@ same => n,Read(input,/etc/asterisk/media/playback/gebot-bestaetigen,1,,1,7)
same => n,GotoIf($[ "${input}" != "1" ]?start)
same => n,Set(DB(auction/open)=1)
same => n,Set(DB(auction/bid)=${startbid})
same => n,RemoveQueueMember(auction,SIP/22)
same => n,Playback(queue-thankyou)
; Close bidding
@@ -789,6 +790,7 @@ exten => 92,1,Answer()
same => n,Wait(0.5)
same => n,Set(DB(auction/open)=0)
same => n,Playback(queue-thankyou)
same => n,AddQueueMember(auction,SIP/22)
same => n,Hangup()
[to-eventphone]