Hi,

in my access-log I see udh for incoming SMS as this:

06080400610201

but value of $heders['X-Kannel-UDH'] (using PHP), is:

%06%08%04%00a%02%01

also HTTP GET parameter is:

udh=%06%08%04%00a%02%01


And for another message:

06080400620201 -> udh=%06%08%04%00b%02%01

both was part of concatenated message from Siemens CX65 phone, but the same 
problem exists with other phones too. For example, this is not normal hex 
format:

0500031Dc! (this must be hex format udh with escape strings "%" removed, it was 
very long concatenated message).


This is my SMS service:

group = sms-service
keyword = default
accept-x-kannel-headers = true
post-url = 
"http://mykannelurl.com/writesms.php?from=%p&to=%P&smsc=%i&time=%t&drv=%d&coding=%c&charset=%C&udh=%u";
max-messages = 0
omit-empty = true


Who can explane why such translation is made? Is it apache problem? Or does 
kannel make this before HTTP request? How can "61" change to "a" and "62" to 
"b"? As I understend, it is from Unicode code table - 00a is %00%61 and 00b is 
%00%62 (http://www.unicode.org/charts/PDF/U0000.pdf), but why must be udh 
translated this way? It would be better to get udh without eny urlescaping as 
this:
udh=06080400610201
I will understend, that is hex anyway.

Ivars


Reply via email to