Solved

Sending SMS with UDH using Kannel

Posted on 2003-10-29
10
2,914 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

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…
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
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…

773 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