**>Date: Thu, 27 Jan 2005 08:27:46 +0300
**>From: Roman <[EMAIL PROTECTED]>
**>To: users@kannel.org
**>Subject: Application Port Addressing?
**>
**>How can I set Application Port Addressing parameter in SMS message with
**>kannel? I'm about 9.2.3.24.4 in GSM 3.40.
**>Is it possible?

Application Port Addressing is encoded into the User Defined Headers (UDH)
part of an SMS.  Kannel does not have the capability to generate a
UDH with a user-defined application port address.

But, you can still use Kannel to send SMS with UDH that were hand-coded
by you. Create the UDH and then use the cgi parameter "udh=..." or
the HTTP optional header parameter "X-Kannel-UDH" when communicating
with Kannel's smsbox.

For example, you want this SMS to be sent to the 16bit application
port 1581 and you want the source port to be 3456.
Your UDH would look like --> 06050415813456.  This decodes to:
  06 - SMSC control Parameter
  05 - Application port addressing scheme, 16 bit address
  04 - Length (in bytes) of the source and destination addresses
  1581 - Destination port (in network byte order)
  3456 - Originator port (in network byte order)

Then, your communication with the smsbox would look like:

  HTTP_GET:
  GET 
/cgi-bin/sendsms?username=foo&password=bar&to=some_phone_num&udh=06050415813456&text=hello
 HTTP/1.0

  HTTP_POST:
  POST /cgi-bin/sendsms HTTP/1.0
  X-Kannel-Username: foo
  X-Kannel-Password: bar
  X-Kannel-To: some_phone_num
  X-Kannel-UDH: 06050415813456
  Content-Type: text/plain
  Content-Length: 5

  hello

See ya...

d.c.

Reply via email to