Never set alt-dcs for binary data. It will strip it to 7-bit and send it over GSM, corrupting it in the process.

BR,
Nikos
----- Original Message ----- From: kasun herath
To: users@kannel.org
Sent: Tuesday, April 19, 2011 8:40 AM
Subject: Specifying dcs and pid fields when sending binary sms


Hi

I have following binary data generated by a different sms gateway which corresponds to an OTA message.

binary data = EB0601B6030B6A00C54601C655018707060374634D61696C416363657373706F696E740001871106034163636573735F4E415049440001871006AB01870806037070776170000187090689018714010101

udh = 0605040B8423F0

DCS = F5

pid = 00

I need to send these binary data over kannel and I'm using the following GET call for the purpose

http://localhost:13013/cgi-bin/sendsms?username=*****&password=*****&to=**********&text=EB0601B6030B6A00C54601C655018707060374634D61696C416363657373706F696E740001871106034163636573735F4E415049440001871006AB01870806037070776170000187090689018714010101&udh=%06%05%04%0B%84%23%F0&coding=0

But the supposed OTA message is not received at all.

I also tried appending a alt-dcs parameter with a value of 1 but is still not working.

I'm copy pasting the relevant line from kannel access log

2011-04-08 10:25:04 Sent SMS [SMSC:AT2[/dev/ttyUSB1]] [SVC:*****] [ACT:] [BINF:] [FID:] [from:1234] [to:**********] [flags:-1:0:-1:-1:-1] [msg:162:EB0601B6030B6A00 C54601C655018707060374634D61696C416363657373706F696E740001871106034163636573735F4E415049440001871006AB01870806037070776170000187090689018714010101] [udh:7:0605040B8423F0]

Can anyone guess why the OTA message is not sent correctly? The Only thing I can think is a problem with dcs and pid options. Can anyone help as to how to supply dcs and pid values?

Thanks
Kasun

Reply via email to