URL placeholder for sending SMS

You have the option of addressing the SMS module as an interface by means of a URL. By integrating predefined placeholders (parameters) into the URL, you can use the device to send SMS text messages by means of an HTTP(S) call. This makes LANCOM cellular routers ideal for use as an SMS gateway.

Important: SMS transmission is suitable for installations with a maximum throughput of 10 SMS per minute.

You use your access credentials to authenticate at the device; just how these are Integrated into the URL is determined by your browser's requirements. The typical notation is Username:Password@Host.

Note: Depending on the use case (for example, SMS gateway), we recommended that you create an administrator without access rights (None) and with just one function right, Send SMS.
Important: Not all Web browsers support the transmission of credentials via the URL. This includes current versions of the Microsoft Internet Explorer, among others. In this case you should use another browser to send SMS via the URL.

The URL call uses the syntax:

(http|https)://<User>:<Password>@<Host>/sms/?<Param1>=<Value1>&…&oldauth

The parameter oldauth is vital, otherwise none of the available browsers will send the access credentials to the device. In addition, the following placeholders are defined:

DestinationAddress
Phone number to which the device should send the SMS. The same conventions apply as for normal telephone calls. Specify the parameters as follows:
&DestinationAddress=01511234567
&DestinationAddress=00491511234567
Content
Content of the text message. The number of characters is limited to one SMS text message (max. 160 characters). For an overview of available characters, see the section Character set for sending SMS.Spaces and other special characters to be included into an SMS must be sent to the device in the URL-encoded form. For example, spaces are encoded with %20 and full stops with %2E. Specify the parameters as follows:
&Content=This%20is%20a%20message%2E
Learn more about this topic on the Internet under the keyword "URL encoding" and also at www.w3schools.com.
Note: Some browsers perform the URL encoding automatically. Despite this, we recommend that you encode the content yourself to ensure that all of the characters are converted correctly.

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de

LANCOM Logo