-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheedomus_plugin.json
87 lines (87 loc) · 2.85 KB
/
eedomus_plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"plugin_id": "eecallus",
"name_fr": "eeCallUs",
"icon": "freepbx.png",
"version": "1.0.0",
"creation_date": "2018-08-11",
"modification_date": "2018-08-12",
"author": "Franck Danard",
"description_fr": "Génère des appels via un serveur VoIP Asterisk, et envoie des messages de type texte sur des téléphones internes.",
"description_en": "",
"description_es": "",
"description_it": "",
"description_de": "",
"forum_link": "https://forum.eedomus.com/viewtopic.php?f=50&t=7317",
"parameters": [{
"parameter": "ip",
"description": "Adresse IP du serveur Asterisk",
"xtype": "textfield",
"field": "width:300, allowBlank:false, maskRe:/[0-9\\.]/, regex:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/, regexText:'Adresse IP invalide [0-255].[0-255].[0-255].[0-255]'"
},
{
"parameter": "port",
"description": "Port AMI du serveur Asterisk",
"xtype": "textfield",
"field": "width:300, allowBlank:false, maskRe:/[0-9]/, regex:/^[0-9]{4,5}$/, regexText:'port invalide, doit avoir de 4 à 5 digits.'"
},
{
"parameter": "user",
"description": "Utilisateur AMI du serveur Asterisk",
"xtype": "textfield",
"field": "width:300, allowBlank:false, maskRe:/[a-zA-Z0-9]/, regex:/^[a-zA-Z0-9]+$/, regexText:'Utilisateur invalide.'"
},
{
"parameter": "secret",
"description": "Mot de passe de l'utilisateur",
"xtype": "textfield",
"field": "width:300, allowBlank:false, maskRe:/[a-zA-Z0-9]/, regex:/^[a-zA-Z0-9]+$/, regexText:'Code scret invalide.'"
}
],
"scripts": [{
"name": "eeCallUs.php"
}],
"devices": [{
"device_id": "remote",
"module_id": "41",
"type": "http",
"name": "plugin.name",
"icon": "telephone.png",
"utilisation_id": "43",
"parameters": {
"value_type": "list",
"VAR1": "plugin.parameters.ip",
"VAR2": "plugin.parameters.port",
"VAR3": "plugin.parameters.user",
"VAR4": "plugin.parameters.secret",
"ignore_errors": 1,
"RAW_URL": "http://localhost/tools/?action=ping&ip=[VAR1]",
"RAW_XPATH": "/eedomus/result",
"POLLING": "3"
},
"values": [{
"value": "0",
"description": "Call",
"icon": "telephone.png",
"http_url": "http://localhost/script/?exec=eeCallUs.php&ip=[VAR1]&port=[VAR2]&user=[VAR3]&secret=[VAR4]&from=&to=&msg=&drv=",
"http_type": "GET",
"http_params": ""
},
{
"value": "1",
"description": "Annonce",
"icon": "annonce.png",
"http_url": "http://localhost/script/?exec=eeCallUs.php&ip=[VAR1]&port=[VAR2]&user=[VAR3]&secret=[VAR4]&from=&to=&msg=&drv=",
"http_type": "GET",
"http_params": ""
},
{
"value": "2",
"description": "Message",
"icon": "message.png",
"http_url": "http://localhost/script/?exec=eeCallUs.php&ip=[VAR1]&port=[VAR2]&user=[VAR3]&secret=[VAR4]&from=&to=&msg=&drv=",
"http_type": "GET",
"http_params": ""
}
]
}]
}