Oscar Elfving ha scritto: > udh=%06%05%04%41%18%00%00 > > This is how my UDH-string looks for sending to my java app at 16664 :) > Hope this helps! > You seem to be missing the terminating %00. > > Regards, > Oscar Elfving > On Jun 8, 2006, at 9:43 AM, Linkas wrote:
I will try that, thanks, maybe it's just a "range" problem because I read somewhere there are some ports are reserved and some free to use. Cheers J >> I think you misunderstood my question or my question was not clear: >> >> the problem is not an HTTP port to call for kannel url, but special >> ports used in sms to get different services. >> >> Example: RTTTL (ringtones) normally go to phone in a special port - in >> this way the phone can understand it's not a standard sms but a ringtone. >> >> Cheers. >> Julien >> >> Wayne Khan ha scritto: >>> Hi Linkas, >>> When you specify in the kannel config file: >>> >>> . >>> . >>> . >>> >>> group = smsbox >>> bearerbox-host = localhost >>> sendsms-port = 14013 >>> global-sender = 123 >>> log-file = "/export/home/sites/sms/kannel/smsbox.log" >>> log-level = 1 >>> access-log = "/export/home/sites/sms/kannel/smsaccess.log" >>> >>> The server will listen for sms requests on port 14013 of your server. >>> You can say: >>> >>> http://localhost:14013/cgi-bin/sendsms?username=foo&password=bar&to=xxx&text=helloworld >>> <http://localhost:14013/cgi-bin/sendsms?username=foo&password=bar&to=xxx&text=helloworld> >>> >>> >>> Now I've never heard of Kannel running on a phone proper, but J2ME >>> should have some library to make a standard HTTP GET request. >>> >>> Linkas wrote: >>>> Hello, >>>> as I'm working with a J2ME application runnning on my phone in wich >>>> I can specify on which port I can listen for sms messages, I was >>>> wondering if anyone knows how to specify a specific destination port >>>> number with kannel when sending messages. >>>> >>>> I think this can be done setting the "destination port" in the UDH >>>> of a message... >>>> So I did my UDH as %06%05%04 %40%74 %00 >>>> Where the %40%74 is 16500 in HEX. >>>> >>>> Am I missing something ? >>>> >>>> Thanks >>>> Julien >>>> >>>> My java code: >>>> >>>> For example in Java I do write (it works): >>>> // Server waiting for SMS >>>> // This listen to SMS messages to port 16500 of my phone >>>> sconn = (MessageConnection) Connector.open("sms://:16500"); >>>> >>>> If I do send an SMS with: >>>> // Client sending SMS >>>> // Open connection and create a message >>>> TextMessage msg = (TextMessage) sconn.newMessage( >>>> MessageConnection.TEXT_MESSAGE); >>>> >>>> // Set recipient to my phone number >>>> msg.setAddress("sms://+123456789:16500"); >>>> // Set the body of the message >>>> msg.setPayloadText( "Hello World" ); >>>> // Send the SMS >>>> sconn.send(msg); >>>> >>>> This works perfectly, but how to send that sms with kannel? >>>> Should I use >>>> >>>> >>> >>
