📜 ⬆️ ⬇️

SMS module for Elastix (part 2)

In this part, I will tell about the already ready SMS module, for the Elastix platform version 2.3., Let me remind you that the first part I told you about the GoIP SMS server .
The module allows you to connect SMPP providers, create groups of mobile phones, send SMS and carry out campaigns for sending SMS. It can also work from an E1550 modem, via an internal script.
This description is fully suitable for, Elastix 2.3 version of i368, a more detailed description of the actions can be found on the website .
To install the SMS module, you must install the elastix-developer-2.2 package and download our module
yum install elastix-developer-2.2.0-3

image

A new SMS tab will appear in the layout:
image

Campaign tab:
image
')
As an SMS provider, it can be an SMPP server or a script (example for E1550):
image

Script for modem operation:

#! / 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 occurs fill
# ret_code: a value different to 0
# ret_message: string error message
# stop_trunk: 1 if this error should stop
# 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

Documentation and a more detailed description of the module is on the site .

Source: https://habr.com/ru/post/189254/


All Articles