views:

10

answers:

0

Hello, probably this is not the best place for this but I don't know where else to look for help. I'm trying to implement a service to start server initiated synchronizations by using SyncML 1.2 SAN specification but I'm having problems when sending, can't receive anything.

Here is my encoding, in case you may detect a problem that I can't see:

WSP

01  // Transaction ID
06  // Push 
03  // Lenght
CE  // 0x80+0x4E application/vnd.syncml.ds.notification
AF  // code for "X-Wap-Application-Id"
85  // 0x80+0x05 x-wap-application:push.syncml

Notification Header:

0318000000
//version: 1.2= 00 0000 1100 (10 bits)
//ui-mode: {00=default, [01]=background, 01=informative, 11=user interaction}
//initiator: {0=user, [1]=server}
//future-use: 000 0000 0000 0000 0000 0000 0000 (27bits)
0001                            
//session-id: 0000 0000 0000 0000 (16 bits)
28
//server identifier-lenght: (8 bits)                
687474703A2F2F64656XXXXXXXXXXXXXXXXX6674776172652E636F6D2F6D6273796E632F73796E63
//server identifier

SAN = WSP + notification digest + notification, being digest like it says: Digest = H(B64(H(server-identifier:password)):nonce:B64(H(trigger))). If you think it may be needed I can post the digest compose algorithm, just not to overflow this...

UDH:

01  //EMI header
07  //emi lenght
06 //lenght                      
0504  //port forwarding
0B84  //destination
C002  //source

But I send the sms but nothing arrives... the sending service works, if I change the port to "C34C" that is for SyncML settings a message arrives but, of course, unknown package.

Any suggestion? I've been here stucked for some time and don't know what else to try.. I've also been using this site as help

Thanks.