keywords: ip pbx voip gateway gsm gateway

× Questions about VS-GW2120/GW1600/GW1202 and WGW1002G GSM Series VoIP Gateway

Problems with line feeds and REST API

2 years 8 months ago #14821 by yive2

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:

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

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

Any ideas?

Thank You!
2 years 8 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.028 seconds
Powered by Kunena Forum