freeswitch icon indicating copy to clipboard operation
freeswitch copied to clipboard

after uuid_hold, hold music not play.

Open wangduanduan opened this issue 3 years ago • 1 comments

Describe the bug

i use uuid_hold to play hold music on the bleg, the log show EXECUTE [depth=0] sofia/internal/[email protected]:57763 playback(/usr/local/freeswitch/sounds/1.mp3), but the 1002 never receive hold music. i use sngrep capture rtp, i found fs not send rtp package after i exec uuid_hold uuid_of_aleg

but if i press hold button on the 1000, the 1002 can receive hold music.

To Reproduce Steps to reproduce the behavior:

bgapi originate user/1000 &bridge(user/1002)
freeswitch@wangdd-nuc11> show channels
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,accountcode,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num,initial_cid_name,initial_cid_num,initial_ip_addr,initial_dest,initial_dialplan,initial_context
b6f8f5a8-2e95-450b-a6c5-f9775177c3b0,outbound,2022-07-04 11:22:50,1656904970,sofia/internal/[email protected]:50226,CS_EXECUTE,Outbound Call,1000,,1000,bridge,user/1002,,default,PCMA,8000,64000,PCMA,8000,64000,,wangdd-nuc11,[email protected],,1000,ACTIVE,Outbound Call,1002,SEND,b6f8f5a8-2e95-450b-a6c5-f9775177c3b0,Outbound Call,1002,,0000000000,,1000,,default
709edde4-03f9-4071-8b37-858e8350d5e6,outbound,2022-07-04 11:22:52,1656904972,sofia/internal/[email protected]:57763,CS_EXCHANGE_MEDIA,Extension 1000,1000,192.168.60.33,1002,,,,default,PCMA,8000,64000,PCMA,8000,64000,,wangdd-nuc11,[email protected],,,ACTIVE,Outbound Call,1002,SEND,b6f8f5a8-2e95-450b-a6c5-f9775177c3b0,Extension 1000,1000,Extension 1000,1000,192.168.60.33,1002,,default
freeswitch@wangdd-nuc11> uuid_hold b6f8f5a8-2e95-450b-a6c5-f9775177c3b0
+OK Success

2022-07-04 11:23:48.278251 98.67% [DEBUG] switch_channel.c:1975 (sofia/internal/[email protected]:50226) Callstate Change ACTIVE -> HELD
2022-07-04 11:23:48.278251 98.67% [DEBUG] sofia_glue.c:1620 sip:[email protected]:50226;ob Setting proxy route to sofia/internal/[email protected]:50226
2022-07-04 11:23:48.278251 98.67% [INFO] sofia_glue.c:1651 sofia/internal/[email protected]:50226 sending invite call-id: (null)
2022-07-04 11:23:48.278251 98.67% [DEBUG] sofia_glue.c:1654 sofia/internal/[email protected]:50226 sending invite version: 1.10.7-release git b070d42 2021-12-15 09:38:57Z 64bit
Local SDP:
v=0
o=FreeSWITCH 1656878164 1656878166 IN IP4 192.168.2.221
s=FreeSWITCH
c=IN IP4 192.168.2.221
t=0 0
m=audio 26806 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
a=rtcp:26807 IN IP4 192.168.2.221

2022-07-04 11:23:48.318247 98.67% [DEBUG] sofia.c:7499 Channel sofia/internal/[email protected]:50226 entering state [calling][0]
2022-07-04 11:23:48.318247 98.67% [DEBUG] sofia.c:7499 Channel sofia/internal/[email protected]:50226 entering state [completing][200]
2022-07-04 11:23:48.318247 98.67% [DEBUG] sofia.c:7509 Remote SDP:
v=0
o=- 3865922571 3865922573 IN IP4 192.168.0.105
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4016 RTP/AVP 8 101
c=IN IP4 192.168.0.105
b=TIAS:64000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=recvonly
a=rtcp:4017 IN IP4 192.168.0.105
a=ssrc:744965404 cname:795c55e77dc41e67

2022-07-04 11:23:48.338330 98.67% [DEBUG] sofia.c:7499 Channel sofia/internal/[email protected]:50226 entering state [ready][200]
2022-07-04 11:23:48.338330 98.67% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2022-07-04 11:23:48.338330 98.67% [DEBUG] switch_core_media.c:5705 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2022-07-04 11:23:48.338330 98.67% [DEBUG] switch_core_media.c:5650 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2022-07-04 11:23:48.338330 98.67% [DEBUG] switch_core_media.c:5566 Set telephone-event payload to 101@8000
2022-07-04 11:23:48.338330 98.67% [DEBUG] switch_core_media.c:5915 Set telephone-event payload to 101@8000
2022-07-04 11:23:48.338330 98.67% [DEBUG] switch_core_media.c:5973 sofia/internal/[email protected]:50226 Set 2833 dtmf send payload to 101 recv payload to 101
2022-07-04 11:23:48.338330 98.67% [DEBUG] switch_core_media.c:8759 Audio params are unchanged for sofia/internal/[email protected]:50226.
2022-07-04 11:23:48.378255 98.67% [DEBUG] switch_ivr.c:632 sofia/internal/[email protected]:57763 Command Execute [depth=0] playback(/usr/local/freeswitch/sounds/1.mp3)
EXECUTE [depth=0] sofia/internal/[email protected]:57763 playback(/usr/local/freeswitch/sounds/1.mp3)
2022-07-04 11:23:48.398318 98.67% [WARNING] switch_core_file.c:463 File has 2 channels, muxing to 1 channel will occur.
2022-07-04 11:23:48.398318 98.67% [DEBUG] switch_ivr_play_say.c:1556 Codec Activated L16@8000hz 1 channels 20ms
2022-07-04 11:23:57.378316 98.77% [DEBUG] sofia.c:7499 Channel sofia/internal/[email protected]:57763 entering state [calling][0]
2022-07-04 11:23:57.478307 98.77% [DEBUG] sofia.c:7499 Channel sofia/internal/[email protected]:57763 entering state [completing][200]
2022-07-04 11:23:57.478307 98.77% [DEBUG] sofia.c:7509 Remote SDP:
v=0
o=1002 8000 8002 IN IP4 192.168.255.162
s=SIP Call
c=IN IP4 192.168.255.162
t=0 0
m=audio 56856 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=rtcp:56857 IN IP4 192.168.255.162
a=ptime:20

2022-07-04 11:23:57.478307 98.77% [DEBUG] sofia.c:7499 Channel sofia/internal/[email protected]:57763 entering state [ready][200]

the log show EXECUTE [depth=0] sofia/internal/[email protected]:57763 playback(/usr/local/freeswitch/sounds/1.mp3) , but the 1002 never receive hold music.

  1. FreeSWITCH crashes

Expected behavior uuid_hold , and the leg b plan hold music.

Package version or git hash

  • Version [e.g. 1.10.7]

wangduanduan avatar Jul 04 '22 03:07 wangduanduan

maybe like https://github.com/signalwire/freeswitch/issues/1476

wangduanduan avatar Jul 04 '22 03:07 wangduanduan

I have the same problem, and I need to use this version due to the number of fixes included in it. I hope you can find the solution.

lukax77 avatar Oct 04 '22 15:10 lukax77