Wednesday, February 29, 2012

kannel: send to a different port

to send to a different port, include udh variable in the request string

udh=%06%05%04%2D%BF%32%D5

* 06 means "hey read the following 6 bytes"
* 05 is the format for numbers, in this case hexadecimal numbers
* 04 will tell the UDH that each port is represented using 4 character
* 0B84 is the destination port in hexadecimal, 2948 (decimal representation)
* 23F0 is the source port in hexadecimal, 9200 (decimal representation) or 23F0 (hexadecimal representation).

(source: http://mobiforge.com/developing/story/binary-sms-sending-rich-content-devices-using-sms)

*make sure to send requests in upper case format

ex.
http://192.168.1.15:13013/cgi-bin/sendsms?username=<username>&password=<password>&from=<number>&to=%2B<number>&text=<string>&udh=%06%05%04%2D%BF%32%D5

udh=%23%05%04%2D%BF%32%D5 ---> 13013 - 32d5

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...