zohar_amir
asked on
Sending SMS with UDH using Kannel
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.
Thanks.
ASKER
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"}
headers = {"Content-type": "text/plain",
"X-Kannel-UDH": "05040E06FDE8",
"X-Kannel-To": "+12345678",
"X-Kannel-Username": "bla",
"X-Kannel-Password": "bli"}
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?
ASKER
looked in the kannel's logs (smsbox)
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/
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/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 ;-)
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 ;-)
ASKER
I assumed _kannel_ adds this automatically... we think too much...
;-)
ASKER
again, thanks for the effort.
How do you prepare the UDH value?
I can't make any promises, but I'll help if I can ;-)