飞信2008协议抓包(2)

时间:2021-07-14 10:13:34

(1)发送短信
发送:
M fetion.com.cn SIP-C/2.0
F: 飞信号
I: 15
Q: 1 M
T: sip:879561006@fetion.com.cn;p=370
N: SendCatSMS
L: 3

 

ttt

接收:
SIP-C/2.0 280 Send SMS OK
T: sip:879561006@fetion.com.cn;p=370
I: 15
Q: 1 M

 

(2)设置在线状态
发送:
S fetion.com.cn SIP-C/2.0
F: 飞信号
I: 28
Q: 1 S
N: SetPresence
L: 55


<args><presence><basic value="600" /></presence></args>


接收:
SIP-C/2.0 200 OK
I: 28
Q: 1 S
L: 61

<results><presence><basic value="600" /></presence></results>



发送:
S fetion.com.cn SIP-C/2.0
F: 飞信号
I: 29
Q: 1 S
N: PGSetPresence
L: 23

<args><groups /></args>

接收:
SIP-C/2.0 200 OK
I: 29
Q: 1 S
L: 29

<results><groups /></results>BN 879561006 SIP-C/2.0
N: presence
I: 7
L: 261
Q: 17 BN

 

<events><event type="PresenceChanged"><presence uri="sip:879561006@fetion.com.cn;p=370"><basic device-id="PCCL030555225059" value="600" desc="" device-type="PC" device-caps="simple-im;im-session;temp-group;personal-group;im-relay;"/></presence></event></events>

 

(3)添加组
发送:
S fetion.com.cn SIP-C/2.0
F: 飞信号
I: 8
Q: 1 S
N: CreateBuddyList
L: 92

<args><contacts><buddy-lists><buddy-list name="组名"/></buddy-lists></contacts></args>


接收:
SIP-C/2.0 200 OK
I: 8
Q: 1 S
L: 125

 

<results><contacts version="323899052"><buddy-lists><buddy-list name="组名" id="7" /></buddy-lists></contacts></results>

 

(4)重命名组
发送:
S fetion.com.cn SIP-C/2.0
F: 飞信号
I: 9
Q: 1 S
N: SetBuddyListInfo
L: 100


<args><contacts><buddy-lists><buddy-list id="7" name="组名" /></buddy-lists></contacts></args>


接收:
SIP-C/2.0 200 OK
I: 9
Q: 1 S
L: 126


<results><contacts version="323899084"><buddy-lists><buddy-list id="7" name="组名" /></buddy-lists></contacts></results>


(5)删除组
发送:
S fetion.com.cn SIP-C/2.0
F: 飞信号
I: 10
Q: 1 S
N: DeleteBuddyList
L: 82

 

<args><contacts><buddy-lists><buddy-list id="7" /></buddy-lists></contacts></args>

接收:
SIP-C/2.0 200 OK
I: 10
Q: 1 S
L: 108

 

<results><contacts version="323899108"><buddy-lists><buddy-list id="7" /></buddy-lists></contacts></results>

 

(6)设置签名档
发送:
S fetion.com.cn SIP-C/2.0
F: 飞信号
I: 10
Q: 1 S
N: SetPersonalInfo
L: 42

<args><personal impresa="签名档" /></args>


接收:
SIP-C/2.0 200 OK
I: 10
Q: 1 S
L: 68

<results><personal version="323898725" impresa="签名档" /></results>BN 879561006 SIP-C/2.0
N: presence
I: 7
L: 144
Q: 15 BN

<events><event type="PresenceChanged"><presence uri="sip:879561006@fetion.com.cn;p=370"><personal impresa="签名档"/></presence></event></events>