Skip to main content

External push notifications

This article describes how to configure push notifications for a control panel through your account on our website.

Why is this needed?​

When using SIP, if i3 pro is closed on a control panel and an intercom tries to call it, a push notification must be sent to the control panel to wake the i3 pro application.

There are two ways to implement this:

  1. Connect iRidi Server to the project and have the intercom call it. When the server receives a call, it will send a push notification to the control panel.

  2. Send notifications through the cloud. This article describes how to do this.

How does it work?​

  1. When a call is made from the intercom, the intercom sends a notification request to the iRidi cloud.
  2. After receiving the request, the cloud issues a command to send a notification to the specified notification group in the specified automation object.
  3. The cloud sends the notification to all panels connected to the specified notification group.
  4. When the user sees the notification on the control panel, they open the application and see the incoming call.

Sending notifications through the cloud​

  1. In your account, open the automation object for which you want to configure cloud notifications and create a notification group.

NewGroup.png

  1. Open the notification group settings and click "Create key" for the required group.

CreateKey.png

  1. Copy the generated key. You will need it later when configuring the SIP intercom.

GetKeyButton.png

Copykey.png

  1. Now configure the SIP intercom. The configuration consists of creating an event that sends a request to the cloud to send a notification.

Request format:

GET http://push.iridiummobile.net/?key=INPUT_HERE_YOUR_KEY&title=You%20have%20not%20recived%20call&sound_type=1

where

  • key - the key copied from your account
  • title - notification text

Configuring SIP intercoms​

Configuring notifications for Asterisk​

  1. Create a user.

  2. Check the context name - from-internal.

ContecstName.jpg

  1. Create a file on the Asterisk server: ntf.sh chmod +x.

Bash.png

  1. Modify the context.

EditContecst.png

Bash script text

#! /bin/bash

curl -X GET \
'http://push.iridiummobile.net/?key=INPUTHEREYOUKEY&title=You%20have%20not%20recived%20call&sound_type=1' \ //В параметр key запишите ключ, взятый из личного кабинета
-H 'Cache-Control: no-cache' \

Context text

;Doing push
exten => 5009,1,System(/etc/asterisk/ntf.sh "${name} (number ${CALLERID(num)})" ${EXTEN})
;Init incriment
exten => 5009,n,Set(i=0)
;Start call cycle and incriment i
exten => 5009,n(redail),Set(i=$[${i} + 1])
;Call
exten => 5009,n,Dial(PJSIP/5009,,m)
;Getting abonent status
exten => 5009,n,ChanIsAvail(PJSIP/5009,,as)
;Wait 5 sec
exten => 5009,n,Wait(5)
;If count of trying more then 5 go out from cycle
exten => 5009,n,GotoIF($["${i}" = "5"]?skip)
;If abonent is offline go to cycle start
exten => 5009,n,GotoIF($["${AVAILSTATUS}" = "5"]?redail)
;Event of cycle out
exten => 5009,n(skip),Wait(1)

Configuring notifications for 3CX​

  1. Create a 3cx Voice Call App.
  2. Add an HTTP Request to it.

Request.png

  1. Create and configure a call queue.

queue.jpg

  1. Add your voice application.

VoiceMessage.jpg

Configuring notifications for 3CX v.16​

  1. Create a new project in 3CX Call Flow Designer.

  2. Drag the HTTP Request component (the component list is on the right) to the "Drag and drop components here" area on the Main tab.

Push_3cx.png

  1. Double-click the component to open its settings.

Push_3cx2.png

  1. Complete the settings.

In the URI field, paste the external PUSH notification link enclosed in quotation marks. The Content field must contain "".

Push_3cx3.png

  1. Build the application: open the Build menu and select Build All.

Push_3cx4.png

  1. After a successful build, a message appears at the bottom with a link to the folder containing the .ZIP file of the created application.

Push_3cx5.png

  1. In the 3CX web interface, open Call Flow Apps .

  2. Add the created application and wait for it to upload.

Push_3cx6.png

  1. PUSH notifications can be added for both Ring Groups and Call Queues. To send PUSH notifications through Ring Groups, create a group and add subscriber numbers to it. In the group settings, select the Send Call To Call Flow Apps action and the notification application you created for the case when the subscriber does not answer the call.

Push_3cx7.png

Call Queue is configured in the same way

Push_3cx8.png

  1. If a call to the group number or queue number is missed, a user running the project for receiving PUSH notifications will receive a message.

Configuring notifications for Mobotix​

  1. Open the Mobotix web interface.

  2. Open Admin Menu.

AdminMenu.png

  1. Then open Outgoing Calls Settings under Audio and VoIP Telephony.

OutgoingCalls.png

  1. Configure phone numbers and SIP addresses.

  2. Set Dial Attempts to 10.

DialAttemps2.png

  1. Go to Setup Menu -> Action Group Overview

  2. Create an Action with the logic "If the intercom call button is pressed, then:"

  • Action 1 - call the control panel
  • Action 2 - select SimpleNotify

Action2.png

  1. In the same section, open the IP Notify window.

IPCotify.png

  1. Open SimpleNotify and configure the parameters:
  • Destination Address = push.iridiummobile.net:80
  • Data Protocol = HTTP/1.0 Request

paste the request text described above into the next field.

/?key=INPUTHEREYOUKEY&title=You%20have%20not%20recived%20call&sound_type=1

IPNotifyProps.png

This completes the Mobotix configuration.