Manage queue membership for auction queue dynamically
This avoids the telephone in the studio ringing all the time
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -575,5 +575,5 @@ announce-position=yes
|
||||
announce-to-first-user=yes
|
||||
announce-frequency=10
|
||||
announce-holdtime=no
|
||||
member => SIP/21
|
||||
context = record-bid
|
||||
; members are added dynamically, so auction doesn't ring all the time
|
||||
|
||||
Reference in New Issue
Block a user