Hi, sorry but I did not understand the issue.
if you want to send "hello" via sms to a different port, you change the port via UDH (please don't use a standard wap-push port because any application listening on a mobile phone will throw exceptions if you try to open a port where the device is listening for configuration/wap messages). Once you find a port that is suitable for your application, you can send binary messages to it, just send the text "hello" and kannel will convert that to %68%65%6c%6c%6f which is the urlencoded version (let's say %+hex code) of the character. The device will receive it as "hello" nomatter how. If you want kannel to force the "hello" word to appear to your application as a "text payload" and not a "binary payload" you can try forcing the encoding to 0 with coding=0 parameter. I'm not sure this will work as kannel, by default, sets coding=1 when a UDH is set. Julien 2009/5/27 Irfan Malik <[email protected]>: > Hi, > > I require UDH header to change the destination port. It is working fine for > simple SMS. That I can send simple SMS on different port now. > > http://localhost:13013/cgi-bin/sendsms?username=user&password=pass&text=Hell > o&udh==%06%05%04%40%7A%23%F0 > > > Now, I want the same for WAP Push, I am using smss.php for WAP Push > creation. Problem is that when I deliver WAP Push on non standard port, it > becomes un readable. > > Do any one has Idea why WAP Push on non standard port for example 5555 > becomes un readable on handset? > > > > > > Regards, > > Irfan Malik > ========= > Manager MIS > TricastMedia > Cell: +92 321-6099155 PH: +92 42 5845265 > Web: www.tcm.com.pk > > -----Original Message----- > From: Rodrigo Cremaschi [mailto:[email protected]] > Sent: Wednesday, May 27, 2009 10:45 PM > To: Irfan Malik > Cc: [email protected] > Subject: Re: ASCII Message > > Hello Irfan, > > Omit the UDH header. > > Regards. > > On Wed, May 27, 2009 at 2:58 PM, Irfan Malik <[email protected]> wrote: >> Hello every body, >> >> >> >> Is there any method with which we can send ASCII text instead of > hexadecimal >> using sendsms? >> >> >> >> > http://localhost:13013/cgi-bin/sendsm?username=user&password=pass&udh=%06%05 > %04%40%7A%23%F0&text=test >> >> >> >> Kannel converts text "test" to hexadecimal and delivers message. Can we >> change default behavior of Kannel so it sends SMS and in ASCII format? >> >> >> >> >> >> >> >> >> >> >> >> >> >> Regards, >> >> >> >> Irfan Malik >> >> ========= >> >> Manager MIS >> >> TricastMedia >> >> Cell: +92 321-6099155 PH: +92 42 5845265 >> >> Web: www.tcm.com.pk >> >> > > > > > -- Julien Buratto
