Logo Logo en
  • iRidi Pro
    Основные компоненты
    • Приложение i3 Pro
    • iRidi Pro Server
    • iRidi Studio
    • iRidium studio v. 1.3.8 (устаревшая версия)
    Java Script в iRidi
    • Руководство
    • Справочник
    • Примеры
    • JS драйвера
    другие
    • Личный Кабинет
    • iRidium Cloud
    • iRidium Transfer
    • Push-уведомления
    • Лучшая практика
    Лицензирование
    • Лицензирование и передача проекта
    • Оффлайн-лицензирование
    • Активация iRidi Pro Server
  • Продукты
    i3 lite
    • Приложение i3 lite
    • Регистрация и лицензирование
    • Сервер
    • Модули
    KNX Home Server
    • Приложение i3 KNX
    • KNX Home Server
    BUS77 HOME SERVER
    • Приложения Bus77 Home и Bus77 Lite
    • Bus77 Home Server
    Решения
    • BYOD - решение для гостиниц
    • Портал жителя - решение для МКД
    iRidi SCADA
    • iRidi SCADA
  • Bus77
    НАСТРОЙКА BUS77
    • Основы Bus77
    • Приложения Bus77 Home и Bus77 Lite
    • Работа с драйвером Bus77 в iRidi Studio
    • Настройка шины Bus77 в iRidi Studio
    ПРОТОКОЛ BUS77
    • Характеристики CAN (Bus77)
    • Описание протокола
    • Исходники на GitHub
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
  • Поддерживаемое оборудование
    Драйверы
    • Список драйверов
    • ProAV драйвера
    • AV & Custom Systems
    • JS драйвера
    • Сторонние драйвера и фриланс
    Протоколы и интерфейсы
    • Голосовое управление
    • 1-Wire
    • BACnet IP
    • Bus77
    • KNX
    • KNX IP BAOS
    • Weinzierl kBerry
    • Microsoft Exchange
    • Modbus
    • MQTT
    • NFC
    • ODBC
    • Onvif
    • SIP
    • SNMP
    • Wake On Lan
    • Z-Wave
    • ZigBee
    Производители
    • AMX
    • AVCiT
    • Beckhoff ADS
    • Biamp Tesira
    • Bluesound
    • Casambi
    • BSS Harman
    • Clipsal
    • ControlArt 7Port
    • Crestron
    • DigiBird
    • Domintell
    • Duotecno
    • EIDE
    • EPSNET
    • Global Cache
    • HDL Buspro
    • Helvar
    • IEAST
    • INELS BUS
    • INELS Wireless
    • Intesis
    • Kleger
    • Kramer VIA
    • Kramer 3000
    • Larnitech
    • Legrand Netatmo
    • LG TV
    • Lutron
    • Lutron Homeworks QS
    • MyHome
    • Nest
    • Novastar
    • Panasоnic PTZ
    • Philips Dynalite
    • PJLink
    • Satel
    • SamsungTV
    • Sonos
    • Somfy
    • SpinetiX
    • Televic Conference
    • TIS
    • Tion
    • URRI
    • Velbus
    • Velocio
    • Vinteo
    • WyreStorm
    • WiiM
    • Xicato
    • Yamaha
    • ZONT
    • Z-Wave.me
    Протестированное оборудование
    • Панель HDL S57
    • Панель HDL S10
    • SIP-домофон
    • Akuvox
    • Arlight
    • Divus
    • QBic TD-1050 PRO
    • QBic TD-1060 Slim
    • QBic TD-1070
    • Sigur
    • Uni-Ubi
    • Velocio
  • Оборудование iRidi

    Серверы
    • HS Сервер
    • ProAV Control Processor Basic
    • ProAV Control Processor Advanced
    • Спецификация контроллеров UMC
    • Настройка контроллера UMC C2
    • Настройка контроллера UMC C3
    • Настройка контроллера HDL IntelliCenter 2 (UMC C4)
    Модули расширения
    • I-PX-RS1
    • I-PX-RS4
    • I-PX-IR3
    KNX
    • KNX Home Server
    • KNX IP Interface
    Панели управления
    • iRidium Panel 7
    • Touch Panel P3
    • Touch Panel P6
    • Touch Panel P8
    • Touch Panel P10
    • Tabletop Touch Panel 10
    • AV Remote Control
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
    • Differences
iRidium mobile web-site
Содержание
    Инструменты‌
    • Сведения о странице
    • Постоянная ссылка
    • Версия для печати
    • Спецстраницы
    • Связанные правки
    • Ссылки сюда
    Login / Create Account
    Материал из for iRidium developers
    Перейти к: навигация, поиск
    Эта страница является переводом страницы CloudPush. Перевод выполнен на 100%.

    Содержание

    • 1 External Push Notifications
      • 1.1 What It Is for
      • 1.2 How It Works
      • 1.3 Sending Notifications via the Cloud
      • 1.4 Setting up of SIP Intercom
        • 1.4.1 Setting up Notifications for Asterisk
        • 1.4.2 Setting up Notifications for 3CX
        • 1.4.3 Setting Notifications for 3СХ v.16
        • 1.4.4 Setting up Notifications for Mobotix

    External Push Notifications

    It is a manual on how to set up sending of Push notifications to control panels via the account on the iRidium mobile web site.

    What It Is for

    It is necessary when working with SIP. When i3 pro is closed on the control panel and intercom tries to call to it, it is required to send a Push notification to the control panel to activate the i3 pro application.

    There are two way to implement such function:
    1. To connect to the iRidium server project and make intercom call to the server. When receiving the call, the server will send a Push notification to the control panel.
    2.To send Push notifications via iRidium cloud. This manual describes this way.

    How It Works

    1. When calling from intercom, the intercom sends a request to sending a Push notification to iRidium cloud.
    2. After getting the request the cloud gives a command to send notifications to the indicated group of notifications in the indicated automation object.
    3. The cloud will send notifications to all panels which are connected to the indicated group of notifications.
    4. After seeing the notification on the control panel, the user will start the application and see the incoming call.

    Sending Notifications via the Cloud

    1. Open the automation object for which it is required to set up cloud notifications in the account and create a group of notifications.

    NewGroup.png

    2. Go to the settings of the group of notifications and click on "create key" for the required group.

    CreateKey.png

    3. Copy the key. It will be used when setting up SIP intercom.

    GetKeyButton.png
    Copykey.png

    4. Set up SIP intercom. The main thing is to create the event which will send a request about sending a Push notification in the cloud.

    The request looks as follows:

    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 the account
    title - the notification text

    Setting up of SIP Intercom

    Setting up Notifications for Asterisk

    1. Create an user.

    2. Specify the context name - from-internal.

    ContecstName.jpg

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

    Bash.png

    4. Make changes in 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' \ //Write the key copied from the account in the  Key parameter.
            -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)


    Setting up Notifications for 3CX

    1. Create 3cx Voice Call App.
    2. Add HTTP Request in it.

    Request.png

    3. Create and set up the call queue.

    Queue.jpg

    4. Add your voice application.

    VoiceMessage.jpg

    Setting Notifications for 3СХ v.16

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

    2 Move the HTTP Request component (the list of components is on the left) in the “Drag and drop components here” fields in the Main tab.

    Push 3cx.png

    3 Open component setting with a double click.

    Push 3cx2.png

    4 Fill in the settings.

    Enter a link of external PUSH-notification in inverted commas in the URI field. The Content field must contain “”.

    Push 3cx3.png

    5 Build the app, find Build in the menu and select Build All.

    Push 3cx4.png

    6 After successful build there will appear a message at the bottom, using which you can go to a folder where a.ZIP file with the app is saved.

    Push 3cx5.png

    7 Go to the Call Flow Apps section in the web-interface of 3CX.

    8 Add the created app and wait for it to download.

    Push 3cx6.png

    9 Sending PUSH-notification can be added to both Ring Groups and Call Queues. To realize sending PUSH-notificaton via Ring Groups, create a group, add numbers of subscribers to the group. В настройках группы укажите действие Select the Send Call To Call flow Apps and the created app action in the group settings to send notifications in case a subscribed didn't answer the call.

    Push 3cx7.png

    Setting for Call Queue is done the same way

    Push 3cx8.png

    10 When a call is made to a group number or to queue number and a user misses a call, and a project to get PUSH-notifications is running, a user will get a notificaton.


    Setting up Notifications for Mobotix

    1. Go to the Mobotix web interface.
    2. Go to the Admin menu section.

    AdminMenu.png

    3. Then open the Outgoing calls settings menu in the Audio and VOIP Telephony section.

    OutgoingCalls.png

    4. Set up phone numbers and SIP addresses. 5. Set up value 10 in Dial Attempts.

    DialAttemps2.png

    5. Go to Setup menu-> Action group overview. 6. Create Action, where we set up "If the intercom call button is pushed, then:"
    Action 1 - start calling to the control panel
    Action 2 - select the value SimpleNotify.

    Action2.png

    7. Go to the IP Notify window in the same section.

    IPCotify.png

    8. Open Simple Nofity and set up the parameters:

    Destination Address = push.iridiummobile.net:80
    Data Protocol = HTTP/1.0 Request

    in the next field input the request text described above.

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

    IPNotifyProps.png

    At that, the setting up of Mobotix is finished.

    Источник — «https://dev.iridi.com/index.php?title=CloudPush/en&oldid=100164»
    About us
    Company
    Team
    History
    Philosophy
    Rewards
    Partnership
    Our partner
    Partnership Programs
    Apply for partnership
    products
    iRidium pro
    iRidium lite
    iRidium gate
    iRidium server
    Loads
    iRidium pro
    iRidium lite
    Other version
    Marketing materials
    Support
    On-line courses/Video
    Recommended equipment
    Other version
    iRidium pro
    Documentation
    FAQ
    Forum
    iRidium lite
    Documentation
    Forum
    Projects
    Standart projects
    Smart buildings
    Smart house
    Special solution
    Find a dealer
    News
    Youtube
    Twitter
    VK
    Logo
    contact@iridi.com
    +7 (499) 322-73-29

    Privacy policy