Thank you, it helped. I only can not find documentation about it. There is nothing about binary format in userguid, and it looks the same as hex too. Only when I get such numbers as for example 61, there is difference.
Ivars > -----Original Message----- > From: Illimar Reinbusch - Telejazz.com [mailto:[EMAIL PROTECTED] > Sent: Friday, May 09, 2008 1:33 PM > To: ivars > Cc: [email protected] > Subject: Re: udh problem > > 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 (%u) 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). > > > In order to pass the variables correctly thru HTTP/GET kannel has to > urlencode the parameter. > If u access the $_GET["udh"] in PHP it will be automatically > converted > back to binary format, > so %06%08%04 will come correct characters. If u want to get HEX from > your UDH u must > use PHP function **bin2hex($_GET["udh"]) and u will get the 060804 > hexademical code. > > Illimar > **
