FreeSWITCH 回复 404 到 PUBLISH

发布于 2024-11-17 02:32:39 字数 3592 浏览 4 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

此刻的回忆 2024-11-24 02:32:39

解决方案是首先订阅“presence.winfo”事件。

The solution was to first subscribe to "presence.winfo" event.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文