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

problem sending sms with carriage return

9 years 5 months ago - 9 years 5 months ago #10018 by maxfranco
i'm trying to implement a php script interface to "http to sms"
i use urlencode to pass the message string to the gateway, but it seems that the gateway can't handle the messages containg a "new line" urlencoded.

passing an urlencoded string containg some encoded LFCR (%0D%0A) directly to the gateway leads to a 'sending' result key in json report, instead of 'success' string.
furthermore also the json string of the report result 'broken' by a new line.

i've seen that the built in sms sender interface can correctly handle new line inserted in the messages, so i hope that someone could give me some useful hints :)

tx
9 years 5 months ago #10019 by lindali
hello,
Please add my skype to your contact list, I'll help you with your problem.
Best regards,

skype: linda.li258
email: This email address is being protected from spambots. You need JavaScript enabled to view it.
9 years 5 months ago #10028 by amieru
Hi Lindali, I am also experiencng the same problem, can you also help us on our problem?

Thank you.
9 years 4 months ago #10042 by Louis
Have you trying to use the Escape character?

(char)0x1D

ASCII Control Codes:

academic.evergreen.edu/projects/biophysi...ogram/ascii_ctrl.htm
9 years 4 months ago - 9 years 4 months ago #10046 by maxfranco
i tried prepending an urlencoded escape char (%1B) to a CR char.
No luck... the sms doesn't start.
an escape char only can be sent, but obviously it didn't result in any output in the sms
9 years 4 months ago - 9 years 4 months ago #10047 by maxfranco
ok... if i put and urlencoded duble quotes into the sms, the gsm gateway correctly escapes it
Command: gsm send sync sms 2 3929xxxxxx "\"test\"" 10000

if i put a line feed it is not escaped:
Command: gsm send sync sms 3 3929xxxxxx "test

newline" 10000
Time to create page: 0.043 seconds
Powered by Kunena Forum