Solved

Sending SMS with UDH using Kannel

Posted on 2003-10-29
10
2,904 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
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
 

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
Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

 

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

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Question has a verified solution.

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

In this article I will describe how to setup a Cisco WLC 5508 to work with Apple's Bonjour protocol across VLANs.  I will also discuss using screen mirroring and Airplay on an AppleTV v3.  This article covers the wireless network only and requires m…
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now