Solved

Sending SMS with UDH using Kannel

Posted on 2003-10-29
10
2,886 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
  • 5
  • 5
10 Comments
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

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

Expert Comment

by:jimmack
Comment Utility
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
Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

 

Accepted Solution

by:
zohar_amir earned 0 total points
Comment Utility
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
Comment Utility
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
Comment Utility
I assumed _kannel_ adds this automatically... we think too much...
0
 
LVL 15

Expert Comment

by:jimmack
Comment Utility
;-)
0
 

Author Comment

by:zohar_amir
Comment Utility
again, thanks for the effort.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now