?
Solved

Sending SMS with UDH using Kannel

Posted on 2003-10-29
10
Medium Priority
?
2,994 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
Need protection from advanced malware attacks?

Look no further than WatchGuard's Total Security Suite, providing defense in depth against today's most headlining attacks like Petya 2.0 and WannaCry. Keep your organization out of the news with protection from known and unknown threats.

 

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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

MAC Filtering: MAC filtering is like handing a list of names to a doorman. If someone comes to the door and mentions a name, this name is checked by the doorman on his list and granted or denied access by this. This means that if someone menti…
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…
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…

770 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