Changes between Version 18 and Version 19 of Servicos/Funambol/pushMailSMSSender


Ignore:
Timestamp:
08/25/09 11:03:10 (15 years ago)
Author:
emersonfaria
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Servicos/Funambol/pushMailSMSSender

    v18 v19  
    14143- O gateway Gnokii inclui um cabeçalho no SMS e envia para o celular Nokia.[[BR]] 
    15154- O celular Nokia envia o SMS binário para o celular do usuário X via operadora de telefonia móvel.[[BR]] 
    16 5- O celular do usuário X recebe o SMS binário solicitando a execucao de seu cliente Funambol e inicializacao de uma sincronizacao de e-mail.[[BR]] 
     165- O celular do usuário X recebe o SMS binário solicitando a execução de seu cliente Funambol e inicialização de uma sincronização de e-mail.[[BR]] 
    1717---- 
    1818== Formato da mensagem SMS: == 
     
    3030=== SMS_HEADER- O gateway SMS deve anexar esse cabeçalho à mensagem: === 
    3131 
    32 00         = Length of SMSC - 00 means Use the SMSC stored in phone.[[BR]] 
     3200         = Length of SMSC - 00 means Use the SMSC stored in phone;[[BR]] 
    333351         = binary 01010001:[[BR]] 
    34 * bit 7=0 means replay path don't exists;[[BR]] 
    35 * bit 6=1 means User Data field starts with a header;[[BR]] 
    36 * bit 5=0 means status report is NOT requested;[[BR]] 
    37 * bits 4,3=10 means Validity Period Format is 1 octet;[[BR]] 
    38 * bit 2=0 means Don't Reject duplicates;[[BR]] 
    39 * bits 1,0=01 means PDU is an SMS-SUBMIT,[[BR]] 
    40 00         = phone set the message reference number itself,[[BR]] 
    41 0A         = Address-Length. Length of phone number (10),[[BR]] 
    42 81         = Type-of-number + Numbering Plan,[[BR]] 
    43 1429129520 = Destination Phone number 4192215902,[[BR]] 
     34* bit 7=0 means replay path don't exists,[[BR]] 
     35* bit 6=1 means User Data field starts with a header,[[BR]] 
     36* bit 5=0 means status report is NOT requested,[[BR]] 
     37* bits 4,3=10 means Validity Period Format is 1 octet,[[BR]] 
     38* bit 2=0 means Don't Reject duplicates,[[BR]] 
     39* bits 1,0=01 means PDU is an SMS-SUBMIT;[[BR]] 
     4000         = phone set the message reference number itself;[[BR]] 
     410A         = Address-Length. Length of phone number (10);[[BR]] 
     4281         = Type-of-number + Numbering Plan;[[BR]] 
     431429129520 = Destination Phone number 4192215902;[[BR]] 
    44440004A737   = Trail.[[BR]] 
    4545[[BR]] 
     
    4747=== Udh(WDP-Wireless Datagram Protocol): === 
    4848 
    49 06         = Length,[[BR]] 
    50 05         = Identifier port number,[[BR]] 
    51 04         = Port number length,[[BR]] 
    52 0B84       = Destination port. This value is for Windows Mobile. If the client is JavaME, replace by C351,[[BR]] 
     4906         = Length;[[BR]] 
     5005         = Identifier port number;[[BR]] 
     5104         = Port number length;[[BR]] 
     520B84       = Destination port. This value is for Windows Mobile. If the client is JavaME, replace by C351;[[BR]] 
    5353C002       = Origination port.[[BR]][[BR]] 
    5454 
    5555=== Message Header(WSP-Wireless Session Protocol): === 
    5656 
    57 01         = Push ID,[[BR]] 
    58 06         = PDU type(Push),[[BR]] 
    59 03         = Headers length (content type + headers),[[BR]] 
    60 CE         = Content type code is the constant CONTENT_TYPE_CODE_NOTIFICATION,[[BR]] 
    61 AF         = X-WAP-Application-ID,[[BR]] 
    62 85         = Id for urn: x-wap-application:push.syncml.[[BR]] 
     5701         = Push ID;[[BR]] 
     5806         = PDU type(Push);[[BR]] 
     5903         = Headers length (content type + headers);[[BR]] 
     60CE         = Content type code is the constant CONTENT_TYPE_CODE_NOTIFICATION;[[BR]] 
     61AF         = X-WAP-Application-ID;[[BR]] 
     6285         = Id for urn: x-wap-application:push.syncml. 
    6363[[BR]] 
     64[[BR]] 
     65 
    6466 
    6567=== Corpo da Mensagem: === 
    6668 
    67 70F45FF17B5ABD16CE29FA27D2F870C2 = MD5 Digest,[[BR]] 
    68 031        = Binary 000000110001, bits 0000001100 means "version 1.2", bits 01 means "Uimode background",[[BR]] 
    69 8          = Binary 1000, bit 1 means "server initiator", bits 000 means "future use",[[BR]] 
    70 000000     = Future use,[[BR]] 
    71 0000       = Session ID,[[BR]] 
    72 08         = Server identifier length,[[BR]] 
    73 66756E616D626F6C = The server identifier string "funambol",[[BR]] 
    74 1          = Num syncs,[[BR]] 
    75 0          = Future use,[[BR]] 
    76 6          = Sync type means "two-way",[[BR]] 
    77 0          = Future use,[[BR]] 
    78 000306     = Content-type - application/vnd.omads-email+xml - OMA Data Sync Email Data Obj(XML),[[BR]] 
    79 04         = Server uri length,[[BR]] 
     6970F45FF17B5ABD16CE29FA27D2F870C2 = MD5 Digest;[[BR]] 
     70031        = Binary 000000110001, bits 0000001100 means "version 1.2", bits 01 means "Uimode background";[[BR]] 
     718          = Binary 1000, bit 1 means "server initiator", bits 000 means "future use";[[BR]] 
     72000000     = Future use;[[BR]] 
     730000       = Session ID;[[BR]] 
     7408         = Server identifier length;[[BR]] 
     7566756E616D626F6C = The server identifier string "funambol";[[BR]] 
     761          = Num syncs;[[BR]] 
     770          = Future use;[[BR]] 
     786          = Sync type means "two-way";[[BR]] 
     790          = Future use;[[BR]] 
     80000306     = Content-type - application/vnd.omads-email+xml - OMA Data Sync Email Data Obj(XML);[[BR]] 
     8104         = Server uri length;[[BR]] 
    80826D61696C   = The server uri string "mail".[[BR]][[BR]] 
    8183