SNAC(15,02)/07D0/1482  CLI_SEND_SMS 

Client use this to send SMS to another user's cell phone. Server may reply via SNAC(15,03)/07DA/0001 if there was error during request processing. Allways set <delivery_receipt> variable to "Yes" to be sure if client received your SMS (server will reply via SNAC(15,03)/07DA/0096). Here is snac/xml format:

 00 15   word   SNAC family
 00 02   word   SNAC subtype
 00 00   word   SNAC flags
 xx xx xx xx   dword   SNAC request-id
 00 01   word   TLV.Type(1) - encapsulated META_DATA
 xx xx   word   TLV.Length
 xx xx   word (LE)   data chunk size (TLV.Length-2)
 xx xx xx xx   dword (LE)   request owner uin
 D0 07   word (LE)   data type: META_DATA_REQ
 xx xx   word (LE)   request sequence number
 82 14   word (LE)   data subtype: META_SEND_SMS
 00 01 00 16
 00 00 00 00
 00 00 00 00
 00 00 00 00
 00 00 00 00
 00 00
  22 bytes   some unknown data
 xx xx   word   xml request strlen
 xx .. xx 00   asciiz str   xml request string

Format of xml request string:
  
<icq_sms_message>
    <destination>International phone number</destination>
    <text>SMS message string</text>
    <encoding>Message encoding name</encoding>
    <senders_UIN>Sender uin</senders_UIN>
    <senders_name>Sender nickname</senders_name>
    <delivery_receipt>Yes/No</delivery_receipt>
    <time>Date/time in GMT format</time>
</icq_sms_message>

 

Example SNAC dump with flap header:

  2a 02 36 5c 01 6f 00 15 00 02 00 00 00 14 00 02   *.6\.o..........
  00 01 01 61 5f 01 8f e4 5e 00 d0 07 5a 1a 82 14   ...a_...^...Z...
  00 01 00 16 00 00 00 00 00 00 00 00 00 00 00 00   ................
  00 00 00 00 00 00 01 3d 3c 69 63 71 5f 73 6d 73   .......=<icq_sms
  5f 6d 65 73 73 61 67 65 3e 3c 64 65 73 74 69 6e   _message><destin
  61 74 69 6f 6e 3e 2b 37 39 30 32 35 34 33 33 39   ation>+790254339
  39 34 3c 2f 64 65 73 74 69 6e 61 74 69 6f 6e 3e   94</destination>
  3c 74 65 78 74 3e 28 52 65 67 72 65 73 73 6f 72   <text>(Regressor
  2c 20 20 49 43 51 29 3a 0d 0a 4a 75 73 74 20 74   ,  ICQ):..Just t
  65 73 74 20 53 4d 53 20 6d 65 73 73 61 67 65 20   est SMS message 
  28 d1 80 d1 83 d1 81 29 3c 2f 74 65 78 74 3e 3c   (......)</text><
  65 6e 63 6f 64 69 6e 67 3e 75 74 66 38 3c 2f 65   encoding>utf8</e
  6e 63 6f 64 69 6e 67 3e 3c 73 65 6e 64 65 72 73   ncoding><senders
  5f 55 49 4e 3e 36 32 31 38 38 39 35 3c 2f 73 65   _UIN>6218895</se
  6e 64 65 72 73 5f 55 49 4e 3e 3c 73 65 6e 64 65   nders_UIN><sende
  72 73 5f 6e 61 6d 65 3e 52 65 67 72 65 73 73 6f   rs_name>Regresso
  72 3c 2f 73 65 6e 64 65 72 73 5f 6e 61 6d 65 3e   r</senders_name>
  3c 64 65 6c 69 76 65 72 79 5f 72 65 63 65 69 70   <delivery_receip
  74 3e 59 65 73 3c 2f 64 65 6c 69 76 65 72 79 5f   t>Yes</delivery_
  72 65 63 65 69 70 74 3e 3c 74 69 6d 65 3e 53 75   receipt><time>Su
  6e 2c 20 32 35 20 4d 61 79 20 32 30 30 33 20 30   n, 25 May 2003 0
  37 3a 33 36 3a 30 37 20 47 4d 54 3c 2f 74 69 6d   7:36:07 GMT</tim
  65 3e 3c 2f 69 63 71 5f 73 6d 73 5f 6d 65 73 73   e></icq_sms_mess
  61 67 65 3e 00                                    age>.


  Main | Basic | Login | Snaclist | Sequences | Misc | Changes | Credits | Terms