voip - 问题: FreeSWITCH does not resend 'Decline' or 'Busy here'

标签 voip sip freeswitch

我有 2 个 UAC 连接到 FreeSWITCH。第 1 方调用第 2 方。第 2 方拒绝调用(使用“拒绝”或“此处忙”)。但 FreeSWITCH 不会向第一方发送“拒绝”。相反,它会通过 SDP 发送 OK,这实际上会发起调用。

如何解决这个问题?

FreeSWITCH 到第 2 方:

send 1250 bytes to udp/[192.168.1.48]:5062 at 09:13:34.543613:
------------------------------------------------------------------------
INVITE sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d0e1e0e0e590e1e9e2fee1e6e8fee1fee4e8" rel="noreferrer noopener nofollow">[email protected]</a>:5062 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.249;rport;branch=z9hG4bKv7gByc79t6eXr
Max-Forwards: 69
From: "Extension 1008" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b78687878ff7868e859986818f99869985838e" rel="noreferrer noopener nofollow">[email protected]</a>>;tag=U7g4v185eNZ5g
To: <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ac9d9c9c99ec9d959e829d9a94829d829894" rel="noreferrer noopener nofollow">[email protected]</a>:5062>
Call-ID: 18afdb77-0ac0-122f-1e9a-000c29db1701
CSeq: 13339743 INVITE
Contact: <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4924262d163a262f20280978707b67787f716778677b7d70" rel="noreferrer noopener nofollow">[email protected]</a>:5060>
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-Type: application/sdp
Content-Disposition: session
Content-Length: 316
X-FS-Support: update_display
Remote-Party-ID: "Extension 1008" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e0d1d0d0d8a0d1d9d2ced1d6d8ced1ced2d4d9" rel="noreferrer noopener nofollow">[email protected]</a>>;party=calling;screen=yes;privacy=off

v=0
o=1007 4735834019219554122 4070593914327911447 IN IP4 192.168.1.249
s=Session SIP/SDP
c=IN IP4 127.0.0.1
t=0 0
m=audio 50000 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000/1
a=rtpmap:101 telephone-event/8000/1
a=fmtp:101 0-15
a=ptime:20
a=silenceSupp:off - - - -
m=video 50002 RTP/AVP 96
a=rtpmap:96 H264/90000
   ------------------------------------------------------------------------
2011-06-06 13:13:34.543847 [DEBUG] sofia.c:4770 Channel sofia/internal/sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="043534343144353d362a35323c2a352a303c" rel="noreferrer noopener nofollow">[email protected]</a>:5062 entering state [calling][0]
recv 324 bytes from udp/[192.168.1.48]:5062 at 09:13:34.553519:
   ------------------------------------------------------------------------
   SIP/2.0 100 Trying
   Via: SIP/2.0/UDP 192.168.1.249;rport=5060;branch=z9hG4bKv7gByc79t6eXr
   From: "Extension 1008" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="536263636b13626a617d62656b7d627d61676a" rel="noreferrer noopener nofollow">[email protected]</a>>;tag=U7g4v185eNZ5g
   To: <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dcedecece99cede5eef2edeae4f2edf2e8e4" rel="noreferrer noopener nofollow">[email protected]</a>:5062>
   Call-ID: 18afdb77-0ac0-122f-1e9a-000c29db1701
   CSeq: 13339743 INVITE
   User-Agent: VideoPhone-V8438 22.21.14.6
   Content-Length: 0

   ------------------------------------------------------------------------
recv 420 bytes from udp/[192.168.1.48]:5062 at 09:13:35.240868:
   ------------------------------------------------------------------------
   SIP/2.0 180 Ringing
   Via: SIP/2.0/UDP 192.168.1.249;rport=5060;branch=z9hG4bKv7gByc79t6eXr
   From: "Extension 1008" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="cffefffff78ffef6fde1fef9f7e1fee1fdfbf6" rel="noreferrer noopener nofollow">[email protected]</a>>;tag=U7g4v185eNZ5g
   To: <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e4d5d4d4d1a4d5ddd6cad5d2dccad5cad0dc" rel="noreferrer noopener nofollow">[email protected]</a>:5062>;tag=743843232
   Call-ID: 18afdb77-0ac0-122f-1e9a-000c29db1701
   CSeq: 13339743 INVITE
   Contact: <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4f7e7f7f7a0f7e767d617e7977617e617b77" rel="noreferrer noopener nofollow">[email protected]</a>:5062>
   User-Agent: VideoPhone-V8438 22.21.14.6
   Allow-Events: talk,hold,conference,refer
   Content-Length: 0

recv 341 bytes from udp/[192.168.1.48]:5062 at 09:13:41.200601:
   ------------------------------------------------------------------------
   SIP/2.0 486 Busy Here
   Via: SIP/2.0/UDP 192.168.1.249;rport=5060;branch=z9hG4bKv7gByc79t6eXr
   From: "Extension 1008" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7b4a4b4b433b4a4249554a4d43554a55494f42" rel="noreferrer noopener nofollow">[email protected]</a>>;tag=U7g4v185eNZ5g
   To: <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="7041404045304149425e4146485e415e4448" rel="noreferrer noopener nofollow">[email protected]</a>:5062>;tag=743843232
   Call-ID: 18afdb77-0ac0-122f-1e9a-000c29db1701
   CSeq: 13339743 INVITE
   User-Agent: VideoPhone-V8438 22.21.14.6
   Content-Length: 0

   ------------------------------------------------------------------------
send 327 bytes to udp/[192.168.1.48]:5062 at 09:13:41.200761:
   ------------------------------------------------------------------------
   ACK sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="deefeeeeeb9eefe7ecf0efe8e6f0eff0eae6" rel="noreferrer noopener nofollow">[email protected]</a>:5062 SIP/2.0
   Via: SIP/2.0/UDP 192.168.1.249;rport;branch=z9hG4bKv7gByc79t6eXr
   Max-Forwards: 69
   From: "Extension 1008" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="063736363e46373f342837303e28372834323f" rel="noreferrer noopener nofollow">[email protected]</a>>;tag=U7g4v185eNZ5g
   To: <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="182928282d5829212a36292e203629362c20" rel="noreferrer noopener nofollow">[email protected]</a>:5062>;tag=743843232
   Call-ID: 18afdb77-0ac0-122f-1e9a-000c29db1701
   CSeq: 13339743 ACK
   Content-Length: 0

   ------------------------------------------------------------------------

然后 FreeSWITCH 到第一方:

send 1197 bytes to udp/[192.168.1.39]:5062 at 09:13:41.207906:
------------------------------------------------------------------------
   SIP/2.0 200 OK
   Via: SIP/2.0/UDP 192.168.1.39:5062;branch=z9hG4bK-383538-d58eaeea024dbe8f3861035d3b20adb1
   From: "Bob" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ae9f9e9e96ee9f979c809f9896809f809c9a97" rel="noreferrer noopener nofollow">[email protected]</a>>;tag=1adc1070-7399-45d9-ba9d-90211de2cabf
   To: "1005" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="251415151065141c170b14131d0b140b17111c" rel="noreferrer noopener nofollow">[email protected]</a>>;tag=tyQBU6Q2Hc9jN
   Call-ID: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="94f7f1f0a3a1f0aca7a6f1a6aca3aca0a5f6f0a7f7a2a7f7a7f7a5ada1aca2a6a6d4a5ada6baa5a2acbaa5baa7ad" rel="noreferrer noopener nofollow">[email protected]</a>
   CSeq: 2 INVITE
   Contact: <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="774647474237464e455946414f59465945434e" rel="noreferrer noopener nofollow">[email protected]</a>:5060;transport=udp>
   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-Type: application/sdp
   Content-Disposition: session
   Content-Length: 271
   Remote-Party-ID: "Outbound Call" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="231213131663121a110d12151b0d120d11171a" rel="noreferrer noopener nofollow">[email protected]</a>>;party=calling;privacy=off;screen=no

   v=0
   o=FreeSWITCH 1307321799 1307321800 IN IP4 192.168.1.249
   s=FreeSWITCH
   c=IN IP4 192.168.1.249
   t=0 0
   m=audio 29822 RTP/AVP 8 101
   a=rtpmap:8 PCMA/8000
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=silenceSupp:off - - - -
   a=ptime:20
   m=video 0 RTP/AVP 19
   ------------------------------------------------------------------------
2011-06-06 13:13:41.192538 [DEBUG] sofia.c:4770 Channel sofia/internal/<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="2011101018601119120e1116180e110e121419" rel="noreferrer noopener nofollow">[email protected]</a> entering state [completed][200]
recv 443 bytes from udp/[192.168.1.39]:5062 at 09:13:41.219020:
   ------------------------------------------------------------------------
   ACK sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddecedede89dece4eff3ecebe5f3ecf3efe9e4" rel="noreferrer noopener nofollow">[email protected]</a>:5060;transport=udp SIP/2.0
   Call-ID: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8deee8e9bab8e9b5bebfe8bfb5bab5b9bcefe9beeebbbeeebeeebcb4b8b5bbbfbfcdbcb4bfa3bcbbb5a3bca3beb4" rel="noreferrer noopener nofollow">[email protected]</a>
   CSeq: 2 ACK
   Via: SIP/2.0/UDP 192.168.1.39:5062;branch=z9hG4bK-383538-8498d2bc22a8c5b2f1be02c79112808d
   From: "Bob" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a49594949ce4959d968a95929c8a958a96909d" rel="noreferrer noopener nofollow">[email protected]</a>>;tag=1adc1070-7399-45d9-ba9d-90211de2cabf
   To: "1005" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a99899999ce998909b87989f918798879b9d90" rel="noreferrer noopener nofollow">[email protected]</a>>;tag=tyQBU6Q2Hc9jN
   Max-Forwards: 70
   Contact: "Bob" <sip:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="526362626a12636b607c63646a7c637c616b" rel="noreferrer noopener nofollow">[email protected]</a>:5062>;expires=0
   Content-Length: 0

   ------------------------------------------------------------------------

最佳答案

我的猜测是您的 FreeSwitch 拨号计划正在故障转移到录制的故障消息、语音邮件系统或其他东西。对第一方的 200 响应是这样他们可以收听预先录制的错误消息。 FreeSwitch 控制台应该为您提供更多有关其正在执行的操作的提示。

关于voip - 问题: FreeSWITCH does not resend 'Decline' or 'Busy here' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6249973/

相关文章:

java - 如何从 java 应用程序执行 FreeSWITCH (fs_cli)

linux - switch_console.c :1053 We've become an orphan, 不再有控制台供我们使用

ios - 无法在 iPhone 6 中安装 voip 应用程序

java - sipdroid - 在继续时不显示另一个来电

sip - Internet Explorer和Google Chrome Frame可以支持webRTC吗?

android - 在 FSClient 和 Android 手机之间使用我的自定义 SIP 应用程序时没有音频

android - 我可以将 WebRTC-Native Android 演示与我的 kamilio/freeswitch 集成吗?

ios - VOIP 推送 "aps"键以获得高优先级通知 - 警报/角标(Badge)/声音

audio - 将音频输出切换到扬声器

android - 如何在 pjsip android 应用程序中启用扬声器?