Send SMS to mobile

Hello,

I have search some forum topic’s but could not find an answer to my problem.
It is quiet simple: I want to sent an SMS by script.

I use the following code:

#Local variable
:local PHONE1 “06xxxxxxxx”;
:local INTERFACE “lte1”;

#bericht naar SMS
:log info $INTERFACE;
:log info $PHONE1;
/tool sms send port=$INTERFACE phone-number=$PHONE1 message=“Hallo All”;

:log info “SMS sent”;


Whats going wrong here?

Hi

i’m using USB modem so we need to set a channel to send.
not sure in LTE if there is a channel

the following is the sample of sending sms
/tool sms send port=$UsbPort phone-number=$DestPhoneNumber1 message=“$SMSMessageText” channel=$Channel;

hope it helps

The correct syntax for MikroTik modules onboard (not USB or others), for example RBwAPR-2nD + R11e-LTE

/tool sms
send lte1 phone-number=00000000 message="xxxxxxxxxxxxxx"

The message must be on General GSM 7 encoding alphabet format, for example “ążźćęłóńÀÁÈÉÌÍÒÓÙÚ” etc. are unsupported

more detail about alphabet:
http://forum.mikrotik.com/t/sms-charset-problem/74623/2