...

среда, 7 августа 2013 г.

SMS модуль для Elastix (часть 2)

В этой части, я расскажу про уже готовый модуль SMS, для платформы Elastix версии 2.3., напомню что первая часть я рассказывал про SMS сервер GoIP.

Модуль позволяет подключать SMPP провайдеров, создавать группы из мобильных телефонов, отправлять SMS и осуществлять кампании по рассылке SMS. Также может работать с модема типа E1550, через внутренний скрипт.

Данное описание полностью подходит для, Elastix 2.3 версии i368, более подробное описание действий можно посмотреть на сайте.

Для установки SMS модуля необходимо установить пакет elastix-developer-2.2 и загрузить наш модуль

yum install elastix-developer-2.2.0-3

image


В раскладке появится новая вкладка SMS:

image


Вкладка создания кампании:

image


В качестве провайдера СМС, может выступать SMPP сервер или скрипт (пример для E1550):

image


Скрипт для работы модемов:


#!/bin/bash


#Get script arguments

clid="$1"

destination="$2"

text="$3"

unicode="$4"


#Init return values

ret_code=1

ret_message=«Message delivered for sending»

stop_trunk=1

stop_message=1


#Process message

#Errors must be processed, if an error occurs fill

# ret_code: a value different to 0

# ret_message: string error message

# stop_trunk: 1 if this error must stop all messages for this trunk, for example, if there's no credit

# stop_message: 1 if this error mist stop this message, for example, if number is invalid


#Begin

#Write process message code

asterisk -rx «dongle sms dongle01 $destination $text»

#End


#Return

echo "$ret_code;$ret_message;$stop_trunk;$stop_message"

exit $ret_code


Документацию и более подробное описание к модулю есть на сайте.


This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html


Комментариев нет:

Отправить комментарий