Dear Digium List
First of all, I thank all of you for all the replies and the interesting
suggestions. I thank you very much. I can only learn from people like
you. :-)
I will remember all the different solutions for a future use in other
scenarios.
On Mon, 2017-05-08 at 16:35 +0200, Frank Vanoni wrote:
> Is there a better solution?
At the end, I cleaned up my dial plan by removing the previous mess and
I'm using now ASTDB, as suggested, in the following way:
exten => 4000,1,Set(DB(alldevices/status)=OFF)
exten => 4000,2,Playback(service&de-activated)
exten => 4001,1,Set(DB(alldevices/status)=ON)
exten => 4001,2,Playback(service&activated)
exten => 2000,1,GotoIf($[${DB(alldevices/status)}=ON]?2001,1:2002,1)
exten => 2001,1,Dial(SIP/Dial(SIP/deviceA&SIP/deviceB&SIP/deviceC)
exten => 2002,1,Dial(SIP/Dial(SIP/deviceA&SIP/deviceB)
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users