ami_test.anubis
1017 Bytes
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
/*
* Created by PyramIDE.
* User: Totoro
* Date: 13/07/2013
* Time: 02:07
*
*/
read system/string.anubis
read tools/basis.anubis
read tools/connections.anubis
read xlib/asterisk/ami_types.anubis
read xlib/asterisk/ami.anubis
read xlib/asterisk/ami_commands.anubis
read xlib/web/CXM_http_get_common.anubis
global define One
send_sms
(
List(String) args
)=
if asterisk_new_client("192.168.4.153:5038", auth("admin","admin")) is
{
failure then println(" asterisk new client failure"),
success(ami_client) then
forget(send_action(ami_client, ami_openvox_gsm_send_sync_sms("1", "+33609362507","AnubisのAMIでsmsを送る...","5")))
}.
global define One
ami_test
(
List(String) args
)=
if asterisk_new_client("192.168.4.5:5038", auth("admin","calexium")) is
{
failure then println(" asterisk new client failure"),
success(ami_client) then
forget(send_action(ami_client, ami_originate_call("1049", "1149")))
}.