keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about VS-GW2120/GW1600/GW1202 and WGW1002G GSM Series VoIP Gateway

Line feeds does not work in HTTP / REST API

3 years 11 months ago #14820 by yive2
Hi,

I am having problems with SMS messages containing line feeds.
The gateway (firmware wg400-2.5.8) will respond always with Bad Request error if message contains line feed or any other characters with value below 0x20 (space character).

For example, following REST request will cause Bad Request error:
http://xxx.xxx.xxx.xxx:80/sendsms?username=USERNAME&password=PASSWD&phonenumber=123123123&message=First+line.%0ASecond+line.

No matter what encoding is used (%0d%0A, \r\n, ...), the error remains.

According to change log this should work. Quote from log:
wg400-2.3.2.bin
release date: 21/12/2016
*Support CR/LF when sending sms through both HTTP and AMI interfaces;


Thank You!
Time to create page: 0.168 seconds
Powered by Kunena Forum