FreeSWITCH 回复 404 到 PUBLISH
我正在使用 QuteCom SIP 客户端连接到 FreeSWITCH。客户端成功注册后,我通过将状态更改为“忙碌”来发布我的状态。但 FreeSWITCH 回复“404 Not Found”。
------------------------------------------------------------------------
recv 932 bytes from udp/[192.168.1.39]:5060 at 07:05:17.940940:
------------------------------------------------------------------------
PUBLISH sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.39:5060;rport;branch=z9hG4bK131644078
From: <sip:[email protected]>;tag=1098221491
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 20 PUBLISH
Contact: <sip:[email protected]:5060>
Max-Forwards: 70
User-Agent: qutecom/rev-g-trunk
Event: presence
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
Content-Type: application/pidf+xml
Content-Length: 452
<?xml version='1.0' encoding='UTF-8'?>
<presence xmlns='urn:ietf:params:xml:ns:pidf'
xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'
xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid'
xmlns:c='urn:ietf:params:xml:ns:pidf:cipid'
entity='sip:[email protected]'>
<tuple id='t2267e46e'>
<status>
<basic>closed</basic>
</status>
</tuple>
<dm:person id='pdc5ba422'>
<rpid:activities>
<rpid:busy/>
</rpid:activities>
<dm:note></dm:note>
</dm:person></presence>
------------------------------------------------------------------------
send 642 bytes to udp/[192.168.1.39]:5060 at 07:05:17.943156:
------------------------------------------------------------------------
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.39:5060;rport=5060;branch=z9hG4bK131644078
From: <sip:[email protected]>;tag=1098221491
To: <sip:[email protected]>;tag=H5BZvmUQ37jjB
Call-ID: [email protected]
CSeq: 20 PUBLISH
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-765908f 2011-05-22 19-10-52 -0500
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0
发布中的状态信息完全符合 RFC4480 。
我应该配置什么才能使 PUBLISH 工作?
I'm connecting to FreeSWITCH with QuteCom SIP client. After a clien is successfully registered, I publish my presence by changing the status to BUSY. But FreeSWITCH replies "404 Not Found".
------------------------------------------------------------------------
recv 932 bytes from udp/[192.168.1.39]:5060 at 07:05:17.940940:
------------------------------------------------------------------------
PUBLISH sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.39:5060;rport;branch=z9hG4bK131644078
From: <sip:[email protected]>;tag=1098221491
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 20 PUBLISH
Contact: <sip:[email protected]:5060>
Max-Forwards: 70
User-Agent: qutecom/rev-g-trunk
Event: presence
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, REFER, SUBSCRIBE, NOTIFY, MESSAGE
Content-Type: application/pidf+xml
Content-Length: 452
<?xml version='1.0' encoding='UTF-8'?>
<presence xmlns='urn:ietf:params:xml:ns:pidf'
xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'
xmlns:rpid='urn:ietf:params:xml:ns:pidf:rpid'
xmlns:c='urn:ietf:params:xml:ns:pidf:cipid'
entity='sip:[email protected]'>
<tuple id='t2267e46e'>
<status>
<basic>closed</basic>
</status>
</tuple>
<dm:person id='pdc5ba422'>
<rpid:activities>
<rpid:busy/>
</rpid:activities>
<dm:note></dm:note>
</dm:person></presence>
------------------------------------------------------------------------
send 642 bytes to udp/[192.168.1.39]:5060 at 07:05:17.943156:
------------------------------------------------------------------------
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.39:5060;rport=5060;branch=z9hG4bK131644078
From: <sip:[email protected]>;tag=1098221491
To: <sip:[email protected]>;tag=H5BZvmUQ37jjB
Call-ID: [email protected]
CSeq: 20 PUBLISH
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-765908f 2011-05-22 19-10-52 -0500
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer
Content-Length: 0
The presence info in publish is completely RFC4480 conformant.
What should I configure to make PUBLISH work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是首先订阅“presence.winfo”事件。
The solution was to first subscribe to "presence.winfo" event.