Solved

Sending SMS with UDH using Kannel

Posted on 2003-10-29
10
2,965 Views
Last Modified: 2012-06-27
I'm using Kannel GW to send/receive SMS messages. The messages should be addressed to a certain 16-bit port, thus I'm trying to send the messages with the following UDH: "X-Kannel-UDH: 05040E06FDE8". This didn't work for some reason (the receiving application did not respond), so I sent it from one Kannel GW to another. On the receiving Kannel i got "X-Kannel-UDH: 040E06FDE8". As you can see, it seems that the IEI got "chopped off". Any idea why and how ? How can I use this correctly, so it works (the UDH that I send is the one that I get, I guess...) ?
Thanks.
0
Comment
Question by:zohar_amir
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 15

Expert Comment

by:jimmack
ID: 9663184
I haven't used Kannel, but I have had a quick look through the docs.  What you seem to be doing looks OK.  Can you post the code that you use to create the message (just the part where you write the UDH should do to start with).

How do you prepare the UDH value?

I can't make any promises, but I'll help if I can ;-)
0
 

Author Comment

by:zohar_amir
ID: 9665244
I use a python script to connect to the kannel, via HTTP. The headers look like this:

headers = {"Content-type": "text/plain",
           "X-Kannel-UDH": "05040E06FDE8",
           "X-Kannel-To": "+12345678",
           "X-Kannel-Username": "bla",
           "X-Kannel-Password": "bli"}
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9665311
Well I have almost no knowledge of python, but what you have there seems to define everything OK.  How do you decode the message at the other end?
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:zohar_amir
ID: 9669142
looked in the kannel's logs (smsbox)
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9685863
Sorry zohar_amir,  I didn't realise that last comment was from you.  I thought it was a question from someone else :-(

I don't know enough about the way Kannel works to really help here.  Not knowing python doesn't help much either :-(

My best suggestion at this stage is that you search or post on the following site:

http://www.mail-archive.com/devel@kannel.org/
0
 

Accepted Solution

by:
zohar_amir earned 0 total points
ID: 9692424
I found the reason 2 days ago (i was too bussy to update you).
The problem was that the UDHL was missing. I should have added "06" at the beginning (there are 6 octets in "05040E06FDE8"). When I use "X-Kannel-UDH: 0605040E06FDE8" it all works fine.
For some reason I thought kannel adds this by itself (not very difficult...), but now I know it doesn't...
Thanks for the effort.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9692511
Doh!

That was one of the things I thought of, but I was assuming that this was prepended somewhere else in the python script.

;-)

As long as you've fixed it, just post in CS to have the question deleted and your points refunded ;-)
0
 

Author Comment

by:zohar_amir
ID: 9692580
I assumed _kannel_ adds this automatically... we think too much...
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9692586
;-)
0
 

Author Comment

by:zohar_amir
ID: 9692678
again, thanks for the effort.
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
Using in-flight Wi-Fi when you travel? Business travelers beware! In-flight Wi-Fi networks could rip the door right off your digital privacy portal. That’s no joke either, as it might also provide a convenient entrance for bad threat actors.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question