Re: [asterisk-users] Manipulate extension state in 1.8.x

2015-06-09 Thread Ishfaq Malik
Hi John I needed a dialplan solution so thank you very much for the pointer! Regards Ish On 9 June 2015 at 17:27, John Kiniston wrote: > You can use a custom device state to do it. > > [dnd] > ;DND Toggle > exten => *363,1,Answer() > same => > n,Set(CURRENT_PRESENCE=${DEVICE_STATE(Custom:DND

Re: [asterisk-users] Manipulate extension state in 1.8.x

2015-06-09 Thread John Kiniston
You can use a custom device state to do it. [dnd] ;DND Toggle exten => *363,1,Answer() same => n,Set(CURRENT_PRESENCE=${DEVICE_STATE(Custom:DND${CHANNEL(peername)})}) same => n,GotoIf($[${CURRENT_PRESENCE}=NOT_INUSE]?*78,1:*79,1) ;DND On exten => *78,1,NoOP(Turning DND On) same => n,Se

[asterisk-users] Manipulate extension state in 1.8.x

2015-06-09 Thread Ishfaq Malik
Hi Is there any way to set the presence state of a peer to in-use in asterisk 1.8? The idea is to integrate DND buttons on phones to BLF. Regards -- Ishfaq Malik Department: VOIP Support Company: Packnet Limited t: +44 (0)161 660 2350 f: +44 (0)161 660 9825 e: i...@pack-net.co.uk w: http://ww