当前位置: 首页 > 工具软件 > fetion4j > 使用案例 >

fetion状态改变和注销的数据包

陈兴朝
2023-12-01

I: 12
Q: 1 S
L: 935

<results><config version="103" experience="0" save-mms="0" save-message="0" /><custom-config version="102" type="PC">H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Ih6fVMvLvG6ytqiWr/O2LZYXR49fz6ur51mbN+0XedNkF3lz9Cwrm/zx3cg33PpNsaDPssXqlKBdf9FcHL2p19q+/93j02Wb12+q1/lypg39Tx4fr9vqVb4qr0+X2aTMZ6b33ueu5dlylr872vHayCeP70ZH+EVVzV7O66zBAJq2xof/9V/6F/xn/+Bf/F/8QX/vf/Fn/Y3/5Z/99/7Xf/Yf8Z/9XX/9eDx+fFcbmIY/8RP/+Z/4J/+Xf/lf8F/+vX/if/b3/BH/6R/0h7gWdwPABpcCf1jM+K/n1fLi9RevDUIyoMd3Ox8/Plk3bbXI65d13uTLKcOJfPZFViy/Wyxn1ZV98/O6Wq+eXH9RzfKjvcd3/T8fPy2aVZnJH0Qy/0+ezS+XZbHMiXBtNm3pj2t/+vtf8jtP8zYryoBRzEf8/RdVnZsPHG/4nxLx+sMghmiq2v55fJVdf7k8m5W5AvE+8L78oliuiUmP7vsNzIfa7vW0zvPl64yYI4Dlf/74y/NzjDboMvwsbPLtal03oHfk08dP1g3Bf7YuS+lD4fU+JtKEo35TrDpkkUl4UbXF+TWmMPj78YvK//u783yJPrS7gS8fv8ivVKYVjDbvfkzQgw964OPfPr7bG8X/A72MVY19BAAA</custom-config></results>SIP-C/2.0 200 OK
/*
cseq是 1 s ,S方法按照sip-c1的说法是service,数据包是配置信息,后面包含客户端的配置信息.

*/
I: 2
Q: 3 SUB
X: 0
L: 329

<results><subscription><contacts><contact uri="sip:440993969@fetion.com.cn;p=5733" /><contact uri="sip:574631035@fetion.com.cn;p=2983" /><contact uri="sip:574685818@fetion.com.cn;p=4805" /><contact uri="sip:575051949@fetion.com.cn;p=5806" /><contact uri="sip:575588571@fetion.com.cn;p=4806" /></contacts></subscription></results>BN 442673010 SIP-C/2.0
/*
cseq是 3 SUB ,Sub方法按照sip-c1的说法是subscribe,数据包是subscription信息,这些用户信息为什么是这些呢?是否有其他意义?,返回一个无须回复的BN 442673010 消息

*/

N: presence
Q: 9 BN
I: 2
X: 0
L: 694

<events><event type="SubscribeResult"><results><subscription><contacts><contact uri="sip:438456281@fetion.com.cn;p=394" /><contact uri="sip:441261369@fetion.com.cn;p=1720" /><contact uri="sip:441548500@fetion.com.cn;p=4018" /><contact uri="sip:566587119@fetion.com.cn;p=3987" /><contact uri="sip:587674771@fetion.com.cn;p=4018" /><contact uri="sip:597816897@fetion.com.cn;p=1117" /><contact uri="sip:605465167@fetion.com.cn;p=3110" /><contact uri="sip:607831090@fetion.com.cn;p=3089" /><contact uri="sip:616510652@fetion.com.cn;p=6174" /><contact uri="sip:621038436@fetion.com.cn;p=373" /><contact uri="sip:640987624@fetion.com.cn;p=6829" /></contacts></subscription></results></event></events>SIP-C/2.0 200 OK
/*
N: presence,表示用户状态改变的事件.
x:0 是否是expires
cseq是 9 bn ,Sub方法按照sip-c1的说法是BENOTIFY,数据包是event type="SubscribeResult"信息,包含用户信息,这些用户信息为什么是这些呢?是否有其他意义?返回ok

*/

I: 1
Q: 3 R
X: 0

/*
Q:3 R 表示register
*/


以上内容是从在线状态变成注销状态的.

以下数据包是从在线状态的数据包
[2007/10/17 23:17:12:472]
SIP-C/2.0 200 OK
I: 31
Q: 1 S
L: 69

<results><presence><basic value="600" desc="" /></presence></results>SIP-C/2.0 200 OK
/*
忙碌
*/
I: 32
Q: 1 S
L: 69

<results><presence><basic value="300" desc="" /></presence></results>SIP-C/2.0 200 OK
/*
马上回来
*/

I: 33
Q: 1 S
L: 69

<results><presence><basic value="100" desc="" /></presence></results>SIP-C/2.0 200 OK
/*
离开
*/

I: 34
Q: 1 S
L: 69

<results><presence><basic value="850" desc="" /></presence></results>SIP-C/2.0 200 OK
/*
会议中
*/

I: 35
Q: 1 S
L: 69

<results><presence><basic value="500" desc="" /></presence></results>SIP-C/2.0 200 OK
/*
接听电话
*/
I: 36
Q: 1 S
L: 69

<results><presence><basic value="150" desc="" /></presence></results>SIP-C/2.0 200 OK
/*
外出用餐
*/

I: 37
Q: 1 S
L: 67

<results><presence><basic value="0" desc="" /></presence></results>SIP-C/2.0 200 OK
/*
瘾身
*/
I: 38
Q: 1 S
L: 987

<results><config version="105" experience="0" save-mms="0" save-message="0" /><custom-config version="104" type="PC">H4sIAAAAAAAEAO29B2AcSZYlJi9tynt/SvVK1+B0oQiAYBMk2JBAEOzBiM3mkuwdaUcjKasqgcplVmVdZhZAzO2dvPfee++999577733ujudTif33/8/XGZkAWz2zkrayZ4hgKrIHz9+fB8/Ih6fVMvLvG6ytqiWr/O2LZYXR49fz6ur51mbN+0XedNkF3lz9Cwrm/zx3cg33PpNsaDPssXqlKBdf9FcHL2p19q+/93j02Wb12+q1/lypg39Tx4fr9vqVb4qr0+X2aTMZ6b33ueu5dlylr872vHayCeP70ZH+EVVzV7O66zBAJq2xof/9V/6F/xn/+Bf/F/8QX/vf/Fn/Y3/5Z/99/7Xf/Yf8Z/9XX/9eDx+fFcbmIY/8RP/+Z/4J/+Xf/lf8F/+vX/if/b3/BH/6R/0h7gWdwPABpcCf1jM+K/n1fLi9RevDUIyoMd3Ox8/Plk3bbXI65d13uTLKd7sfrS7s3P0+Hf93snT4zfH3/uv/uA/5j//y/5qwvv738fQY017nxLML7Ji+d1iOauubM+f19V69eT6i2qWH+09vuv/+fhp0azKTP4gkvt/Mjd8uSyLZU6Eb7NpS39c++zT/5LfeZq3WVEGjGY+4u+/qOrcfOB4y/+UiN8fBjFUU9X2z+Or7PrL5dmszBWI94H35RfFck1MfnTfb2A+1Havp3WeL19nxFwBLP/zx1+en2O0QZfhZ2GTb1frugG9I58+frJuCP6zdVlKHwqv9zGRJhz1m2LVIYtMwouqLc6vMYXB349fVP7f353nS/Sh3Q18+fhFfqU6QcFo8+7HBD34oAc+/u3ju71R/D9Zd7ljvQQAAA==</custom-config></results>SIP-C/2.0 200 OK

/*
修改自定义的状态为"聊天中"
*/

I: 39
Q: 1 S
L: 78

<results><presence><basic value="100" desc="鑱婂ぉ涓? /></presence></results>SIP-C/2.0 200 OK
/*
自定义状态,聊天中
*/

I: 40
Q: 1 S
L: 69

<results><presence><basic value="400" desc="" /></presence></results>

/*
在线
*/

以下是突然一人上线的通知信息

Q: 11 BN
N: presence
X: 23786
I: 2
L: 165

<events><event type="PresenceChanged"><presence uri="sip:568556369@fetion.com.cn;p=3223"><basic device-id="PCCL1410029704" value="0" /></presence></event></events>
SIP-C/2.0 200 OK

 

 类似资料: