Manipulate Extension State In 1.8.x

Home » Asterisk Users » Manipulate Extension State In 1.8.x
Asterisk Users 2 Comments

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

2 thoughts on - Manipulate Extension State In 1.8.x

  • 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

  • Hi John

    I needed a dialplan solution so thank you very much for the pointer!

    Regards

    Ish