The package sms provides functions to send messages SMS to mobile devices. The messages are sent through a
mobil device with a SIM card which should be accessible from the application server. In the table wic_user_group,
the IP, the port and a device security key should be informed. The device must be Android and have the axional-mobile-sms
application installed.
1 sms.send
Given a URL connection established through the function http.connection perform the reading and returns the content.
<sms.send
timeout='timeout'
phone='phone'
>
<message /> !
</sms.send>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atimeout | integer | Maximum time of connection. | |||
Aphone | string | Telephone number to which you want to send a message. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Emessage | String | Content of the message. |
Returns | |
---|---|
Type | Description |
String | Result of the operation. |
Example
Send a message with the content Hello World! to the phone 667840777 through a device defined in wic_user_groups.
Copy
<xsql-script> <body> <sms.send timeout="300" phone="667840777"> Hello World! </sms.send> </body> </xsql-script>