飞信 Symbian 客户端接口规范
版本:1.0
掌上明珠公司
2006 年 7 月 21 日
更新日期 更新者 更新内容
2006-7-18
刘垌序 修改文档(添加消息)
1、 添加 Fetion 交友服务消息
2、 修改 GetConfig 消息
3、 修改 GetUserConfig 消息
2
目录
2006 年 7 月 21 日.....................................................................................................................................1
1 范围......................................................................................................................................................17
2 参考文献..............................................................................................................................................17
3 术语和缩略语......................................................................................................................................18
4 系统结构..............................................................................................................................................19
5 基础协议..............................................................................................................................................19
1.1. SMS...............................................................................................................................................20
1.2. HTTP.............................................................................................................................................20
1.3. SIP.................................................................................................................................................20
1.4. SDP...............................................................................................................................................20
1.5. XML..............................................................................................................................................20
1.6. 加密算法.......................................................................................................................................21
1.7. 压缩算法.......................................................................................................................................21
6 SIP-C 基础...........................................................................................................................................21
1.8. 概述...............................................................................................................................................21
1.9. SIP 方法的缩写............................................................................................................................22
1.10. SIP 消息头的缩写......................................................................................................................22
7 服务状态改变......................................................................................................................................23
1.11. 业务定购.....................................................................................................................................23
1.11.1. 移动设备.............................................................................................................................23
7...1 过程描述.......................................................................................................................................... 23
7...2 短信发送格式 - [SMS-Register]......................................................................................................23
7...3 短信接收格式 - [SMS-RSP-Register]..............................................................................................24
1.11.2. 非移动设备.........................................................................................................................25
1.12. 业务退订.....................................................................................................................................25
1.12.1. 短信方式 - [SMS-Unregister].............................................................................................25
1.12.2. 命令方式.............................................................................................................................25
8 登陆状态改变......................................................................................................................................25
1.13. 模式.............................................................................................................................................26
1.14. 请求注册.....................................................................................................................................26
1.14.1. 注册请求消息 - [REG-1]....................................................................................................26
3
8...1 消息格式.......................................................................................................................................... 26
8...2 示例.................................................................................................................................................. 27
1.14.2. 注册应答消息 - [REG-RSP-1]...........................................................................................27
8...3 消息格式.......................................................................................................................................... 27
8...4 错误处理.......................................................................................................................................... 27
8...5 示例.................................................................................................................................................. 27
1.15. 请求认证.....................................................................................................................................28
1.15.1. 认证请求消息 - [REG-2]....................................................................................................28
8...6 消息格式.......................................................................................................................................... 28
8...7 凭据生成算法..................................................................................................................................28
8...8 示例.................................................................................................................................................. 28
1.15.2. 认证应答消息 - [REG-RSP-2]...........................................................................................28
8...9 消息格式.......................................................................................................................................... 28
8...10 错误处理........................................................................................................................................ 29
8...11 示例................................................................................................................................................ 29
1.16. 协商流压缩.................................................................................................................................29
1.16.1. 协商请求 - [NEG-COMPRESS].........................................................................................29
8...12 消息格式........................................................................................................................................ 29
8...13 压缩算法........................................................................................................................................ 29
8...14 示例................................................................................................................................................ 30
1.16.2. 协商应答消息 - [NEG-COMPRESS-RSP-2].....................................................................30
8...15 消息格式........................................................................................................................................ 30
8...16 错误处理........................................................................................................................................ 30
8...17 示例................................................................................................................................................ 30
1.17. 保持注册.....................................................................................................................................30
1.17.1. 保持注册请求消息 - [REG-3]............................................................................................30
8...18 消息格式........................................................................................................................................ 30
8...19 示例................................................................................................................................................ 31
1.17.2. 保持注册应答消息 - [REG-RSP-3]...................................................................................31
8...20 消息格式........................................................................................................................................ 31
8...21 示例................................................................................................................................................ 31
1.18. 注销.............................................................................................................................................31
1.18.1. 注销请求消息 - [UNREG-1]..............................................................................................31
8...22 消息格式........................................................................................................................................ 31
8...23 示例................................................................................................................................................ 31
1.18.2. 注销应答消息 - [UNREG-RSP-1]......................................................................................32
8...24 消息格式........................................................................................................................................ 32
4
8...25 错误处理........................................................................................................................................ 32
8...26 示例................................................................................................................................................ 32
1.19. 强制注销通知.............................................................................................................................32
1.19.1. 通知消息 - [NTF-Registration]...........................................................................................32
8...27 消息格式........................................................................................................................................ 32
8...28 消息体格式.................................................................................................................................... 33
8...29 消息示例........................................................................................................................................ 33
1.19.2. 应答消息 - [NTF-RSP- Registration].................................................................................33
8...30 消息格式........................................................................................................................................ 33
8...31 消息示例........................................................................................................................................ 33
8...32 错误处理........................................................................................................................................ 34
9 订阅-通知............................................................................................................................................34
1.20. 模式.............................................................................................................................................34
1.21. 联系人列表.................................................................................................................................35
1.21.1. 订阅联系人列表.................................................................................................................35
9...1 订阅请求 - [SUB-Contacts].............................................................................................................35
9...2 订阅应答 - [SUB-RSP-Contacts].....................................................................................................35
1.21.2. 联系人列表通知.................................................................................................................36
9...3 通知消息 - [NTF-Contacts]..............................................................................................................36
9...4 应答消息 - [NTF-RSP-Contacts].....................................................................................................38
1.21.3. 退订联系人列表.................................................................................................................38
9...5 退订请求 - [UNSUB-Contacts]........................................................................................................38
9...6 退订应答 - [UNSUB-RSP-Contacts]................................................................................................39
1.22. 状态授权信息.............................................................................................................................39
1.22.1. 订阅状态授权信息.............................................................................................................39
9...7 订阅请求 - [SUB-ACLs]..................................................................................................................39
9...8 订阅应答 - [SUB-RSP-ACLs]..........................................................................................................40
1.22.2. 授权信息通知.....................................................................................................................41
9...9 通知消息 - [NTF-ACLs]..................................................................................................................41
9...10 应答消息 - [NTF-RSP-ACLs]........................................................................................................42
1.22.3. 退订授权信息.....................................................................................................................42
9...11 退订请求 - [UNSUB-ACLs]..........................................................................................................42
9...12 退订应答 - [UNSUB-RSP-ACLs]..................................................................................................43
1.23. 状态订阅申请.............................................................................................................................43
1.23.1. 订阅状态订阅申请.............................................................................................................43
9...13 订阅消息 - [SUB-WPending].........................................................................................................43
5