New alert plugin in 2.31.06

  1. 2 years ago

    Can you please give a real world example for the new alert plugin from 2.31.06?
    I tried this:

     same => n,UserEvent(FOP2CUST,Family: alert,Urgent test for you!^info&10)

    But the syntax is possibly not correct.

  2. admin

    4 Jan 2017 Administrator

    You have to specify the channel to target de alert. If you want to make it global use the channel name GLOBAL_ALERT otherwise SIP/whatever

    Something like

    UserEvent(ALERT,Family: alert,Channel: SIP/100,Value: Urgent test for you~error~10)

  3. Edited 2 years ago by mkeuter

    Thanks for the clarification.

    I tried it, but still nothing appears in the FOP2 webclient, except the normal popup for an incoming call.

    -- Executing [21@internal-phones:2] UserEvent("SIP/16_yeal-00000047", "ALERT,Family: alert,Channel: SIP/21_snom,Value: Urgent test for you~error~10") in new stack

  4. admin

    4 Jan 2017 Administrator

    This works, providing the alert plugin is enabled for the user, the channel is correct ([SIP/xxx] header in FOP2 autobuttons configuration ouput):

    exten => 2222,n,UserEvent(Alert,Channel: SIP/111,Family: alert,Value: hello world~error~10)

    It is possible that you will have to conver the channel to upper case, try setting it to SIP/21_SNOM in the user event and see if it makes a difference. IF you want to broadcast to all connected users, try the pseudo channel GLOBAL_ALERT.

    Best regards,

or Sign Up to reply!