signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.54k stars 1.41k forks source link

The voice stream on the agent side is stuck and blank due to the user side key presses #2519

Open jinxiaobo opened 3 months ago

jinxiaobo commented 3 months ago

Describe the bug The voice stream on the agent side is stuck and blank due to the user side key presses

To Reproduce Steps to reproduce the behavior:

  1. ring A leg(agent) and answer
  2. ring B leg(user) and bridge
  3. key press on B leg
  4. stuck and blank on A leg's channel profile: dtmf-type:rfc2833

Expected behavior no stuck and blank

Package version or git hash

Trace logs 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] sofia.c:7493 Channel sofia/internal/001vu7pi@192.0.2.174 entering state [ready][200] 1009216 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 1009217 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 1009218 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 1009219 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 1009220 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 1009221 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 1009222 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:3734 Set Codec sofia/internal/001vu7pi@192.0.2.174 PCMA/8000 20 ms 160 samples 64000 bits 1 channels 1009223 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_codec.c:111 sofia/internal/001vu7pi@192.0.2.174 Original read codec set to PCMA:8 1009224 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [WARNING] switch_core_media.c:4158 NO candidate ACL defined, Defaulting to wan.auto 1009225 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:4214 Save audio Candidate cid: 1 proto: udp type: host addr: 172.26.40.157:63649 1009226 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:4214 Save audio Candidate cid: 1 proto: udp type: srflx addr: 153.99.46.162:63649 1009227 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:4259 Searching for rtp candidate. 1009228 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:4268 Choose rtp candidate, index 1, 153.99.46.162:63649 1009229 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:4003 sofia/internal/001vu7pi@192.0.2.174 choosing family v4 1009230 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:4279 Choose same candidate, index 0, for rtcp based on rtcp-mux attribute 153.99.46.162:63649 1009231 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:4331 setting remote audio ice addr to index 1 153.99.46.162:63649 based on candidate 1009232 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:4366 Setting remote rtcp audio addr to 153.99.46.162:63649 based on candidate 1009233 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:5827 No 2833 in SDP. Liberal DTMF mode adding 101 as telephone-event. 1009234 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:5856 sofia/internal/001vu7pi@192.0.2.174 Set 2833 dtmf send payload to 101 recv payload to 101 1009235 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:8659 AUDIO RTP [sofia/internal/001vu7pi@192.0.2.174] 10.16.107.23 port 23854 -> 153.99.46.162 port 63649 codec: 8 ms: 20 1009236 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_rtp.c:4373 Starting timer [soft] 160 bytes per 20ms 1009237 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [INFO] switch_core_media.c:8840 Activating Audio ICE 1009238 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [NOTICE] switch_rtp.c:4811 Activating RTP audio ICE: ss5T:arHauL00hT0ILUhA 153.99.46.162:63649 1009239 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:8880 Activating RTCP PORT 63649 1009240 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_rtp.c:4705 RTCP send rate is: 1000 and packet rate is: 20000 Remote Port: 63649 1009241 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [INFO] switch_core_media.c:8891 Skipping RTCP ICE (Same as RTP) 1009242 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [INFO] switch_rtp.c:3680 Activate RTP/RTCP audio DTLS server 1009243 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [INFO] switch_rtp.c:3868 Changing audio DTLS state from OFF to HANDSHAKE 1009244 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:8972 sofia/internal/001vu7pi@192.0.2.174 Set 2833 dtmf send payload to 101 1009245 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:8979 sofia/internal/001vu7pi@192.0.2.174 Set 2833 dtmf receive payload to 101 1009246 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.061724 97.97% [DEBUG] switch_core_media.c:9002 sofia/internal/001vu7pi@192.0.2.174 Set rtp dtmf delay to 40 1009247 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.081723 97.97% [NOTICE] sofia.c:8680 Channel [sofia/internal/001vu7pi@192.0.2.174] has been answered 1009248 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.081723 97.97% [DEBUG] switch_channel.c:3912 (sofia/internal/001vu7pi@192.0.2.174) Callstate Change RINGING -> ACTIVE 1009249 2024-07-04 09:14:39.081723 97.97% [DEBUG] switch_ivr_originate.c:3909 Originate Resulted in Success: [sofia/internal/001vu7pi@192.0.2.174] Peer UUID: 64424d61-2705-4fcc-b185-7c80005a40a8 1009250 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.081723 97.97% [CRIT] switch_channel.c:1508 Invalid data (${outbound_caller_id_name} contains a variable) 1009251 64424d61-2705-4fcc-b185-7c80005a40a8 2024-07-04 09:14:39.081723 97.97% [CRIT] switch_channel.c:1508 Invalid data (${outbound_caller_id_number} contains a variable) 1009252 2024-07-04 09:14:39.081723 97.97% [DEBUG] switch_ivr_originate.c:3909 Originate Resulted in Success: [sofia/internal/001vu7pi@192.0.2.174] Peer UUID: 64424d61-2705-4fcc-b185-7c80005a40a8

backtrace from core file If applicable, provide the full backtrace from the core file.