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

Problems with line feeds and REST API

3 years 11 months ago #14821 by yive2
Hi,

I am having problems with SMS messages that contains 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:
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;

Any ideas?

Thank You!
3 years 11 months ago #14822 by yu
hello Yive2
Sorry for the trouble. Firmware 2.5.6 and 2.5.8 don't support %0A, we will solve it in our next firmware.If you want to use %0A, you can update your firmware to firmware 2.5.4 or below 2.5.4. If you have any other issues, you can add my skype:live:.cid.a65498ca89f1fd0
Time to create page: 0.047 seconds
Powered by Kunena Forum