|
|
|
@ -41,7 +41,6 @@ class Cellsynt extends NotificationProvider {
|
|
|
|
|
Possible values: numeric, shortcode and alpha.
|
|
|
|
|
*/
|
|
|
|
|
"originatortype": notification.Originatortype,
|
|
|
|
|
|
|
|
|
|
/* Identifier which will be visible on recipient's mobile phone as
|
|
|
|
|
originator of the message. Allowed values and function depends
|
|
|
|
|
on parameter originatortype's value according to below:
|
|
|
|
@ -70,7 +69,7 @@ class Cellsynt extends NotificationProvider {
|
|
|
|
|
needed (default value is 1, see Long SMS). Maximum value is 6
|
|
|
|
|
(i.e. max 153 x 6 = 918 characters).
|
|
|
|
|
*/
|
|
|
|
|
"allowconcat": notification.cellsyntAllowLongSMS? 6: 1,
|
|
|
|
|
"allowconcat": notification.cellsyntAllowLongSMS ? 6: 1,
|
|
|
|
|
|
|
|
|
|
/* Value can be set to true if message should be sent as "flash
|
|
|
|
|
message", i.e. displayed directly on phone screen instead of
|
|
|
|
@ -81,7 +80,6 @@ class Cellsynt extends NotificationProvider {
|
|
|
|
|
(class=1).
|
|
|
|
|
*/
|
|
|
|
|
//"flash": "",
|
|
|
|
|
|
|
|
|
|
/* Message class can be set to 0 (flash message), 1 (default, MEspecific), 2 (SIM-specific) or 3 (TE-specific).
|
|
|
|
|
*/
|
|
|
|
|
//"class": "",
|
|
|
|
@ -105,15 +103,14 @@ class Cellsynt extends NotificationProvider {
|
|
|
|
|
};
|
|
|
|
|
try {
|
|
|
|
|
if (heartbeatJSON != null) {
|
|
|
|
|
msg = msg;
|
|
|
|
|
data.params.text = msg.replace(/[^\x00-\x7F]/g, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let resp = await axios.post("https://se-1.cellsynt.net/sms.php", null, data);
|
|
|
|
|
if(typeof resp.data == undefined || resp.data == null || resp.data.includes("Error")) {
|
|
|
|
|
let resp = await axios.post("https://se-1.cellsynt.net/sms.php",null,data);
|
|
|
|
|
if(resp.data == null || resp.data.includes("Error")) {
|
|
|
|
|
this.throwGeneralAxiosError(resp.data);
|
|
|
|
|
}
|
|
|
|
|
}catch (error) {
|
|
|
|
|
} catch (error) {
|
|
|
|
|
this.throwGeneralAxiosError(error);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|