Full patch 20160726230710-c9899-42900cb33c54d1ab281663af2a904e860f45e628

Tue Jul 26 23:07:10 UTC 2016  Alexander Markov <apsheronets@gmail.com>
 * wow, new howto

en/howto-send-sms-via-hilink-modem
@@ -0,0 +1,16 @@
h1. How to send SMS via Hilink modem

bc[shell].. #!/bin/bash

NUMBER=$1
MESSAGE=$2

LENGTH=${#MESSAGE}
TIME=$(date +"%Y-%m-%d %T")
TOKEN=$(curl -v 'http://192.168.8.1/api/webserver/token' | sed -n 's:.*<token>\(.*\)</token>.*:\1:p')

SMS="<?xml version="1.0" encoding="UTF-8"?><request><Index>-1</Index><Phones><Phone>$NUMBER</Phone></Phones><Sca></Sca><Content>$MESSAGE</Content><Length>$LENGTH</Length><Reserved>1</Reserved><Date>$TIME</Date></request>"

curl 'http://192.168.8.1/api/sms/send-sms' -H "__RequestVerificationToken: $TOKEN" --data "$SMS" --compressed

p. Usage: @./send-sms.sh +55555555 'hey there'@