hangup_after_bridge

本文详细介绍了Asterisk中不同挂断后的处理方式,包括直接挂断、转移、停放、执行应用或API等操作,并探讨了这些操作在Esl开发接口中的应用。
  1. hangup_after_bridge bleg挂断后是否挂断aleg。
  2. transfer_after_bridge bleg挂断后,aleg transfer目的的。
  3. park_after_bridge bleg挂断后,aleg是否park,esl开发接口非常有用。
  4. exec_after_bridge_app bleg挂断后后,aleg执行一个APP。
  5. api_after_bridge bleg挂断后后,aleg执行一个API。
2025-07-21 08:49:44.384673 98.13% [NOTICE] switch_channel.c:1142 New Channel sofia/external/03512332064@27.25.152.174:5080 [f7cb7827-97d4-425a-bc2c-cf9b13be59e2] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:581 (sofia/external/03512332064@27.25.152.174:5080) Running State Change CS_NEW (Cur 1 Tot 3) 2025-07-21 08:49:44.384673 98.13% [INFO] sofia.c:10460 sofia/external/03512332064@27.25.152.174:5080 receiving invite from 183.227.180.227:11180 version: 1.10.12-release git a88d069 2024-08-02 21:02:27Z 64bit call-id: NDUxNGM1ZTQ2YjRmYmE4MmU5MTZmNzU0YWQ4ZGQyMzk. 2025-07-21 08:49:44.384673 98.13% [DEBUG] sofia.c:7493 Channel sofia/external/03512332064@27.25.152.174:5080 entering state [received][100] 2025-07-21 08:49:44.384673 98.13% [DEBUG] sofia.c:7503 Remote SDP: v=0 o=- 3 2 IN IP4 10.168.1.102 s=CounterPath eyeBeam 1.5 c=IN IP4 10.168.1.102 t=0 0 m=audio 54352 RTP/AVP 0 8 18 101 a=rtpmap:18 G729/8000 a=fmtp:18 annexb=no a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=alt:1 3 : iK5V2W/W pEj/Dpnc 172.28.16.1 54352 a=alt:2 2 : nAbCj4Vq WkStC97/ 172.17.144.1 54352 a=alt:3 1 : eGpFHhQ7 0OXyRLAj 10.168.1.102 54352 a=x-rtp-session-id:C7CDCEAEF8EF4DB88207D0E52CE3EC84 2025-07-21 08:49:44.384673 98.13% [DEBUG] sofia.c:7906 (sofia/external/03512332064@27.25.152.174:5080) State Change CS_NEW -> CS_INIT 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:600 (sofia/external/03512332064@27.25.152.174:5080) State NEW 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:581 (sofia/external/03512332064@27.25.152.174:5080) Running State Change CS_INIT (Cur 1 Tot 3) 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:624 (sofia/external/03512332064@27.25.152.174:5080) State INIT 2025-07-21 08:49:44.384673 98.13% [DEBUG] mod_sofia.c:97 sofia/external/03512332064@27.25.152.174:5080 SOFIA INIT 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:40 sofia/external/03512332064@27.25.152.174:5080 Standard INIT 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:48 (sofia/external/03512332064@27.25.152.174:5080) State Change CS_INIT -> CS_ROUTING 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:624 (sofia/external/03512332064@27.25.152.174:5080) State INIT going to sleep 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:581 (sofia/external/03512332064@27.25.152.174:5080) Running State Change CS_ROUTING (Cur 1 Tot 3) 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_channel.c:2399 (sofia/external/03512332064@27.25.152.174:5080) Callstate Change DOWN -> RINGING 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:640 (sofia/external/03512332064@27.25.152.174:5080) State ROUTING 2025-07-21 08:49:44.384673 98.13% [DEBUG] mod_sofia.c:158 sofia/external/03512332064@27.25.152.174:5080 SOFIA ROUTING 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:230 sofia/external/03512332064@27.25.152.174:5080 Standard ROUTING 2025-07-21 08:49:44.384673 98.13% [INFO] mod_dialplan_xml.c:639 Processing 03512332064 <03512332064>->18888888888 in context public Dialplan: sofia/external/03512332064@27.25.152.174:5080 parsing [public->unloop] continue=false Dialplan: sofia/external/03512332064@27.25.152.174:5080 Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false Dialplan: sofia/external/03512332064@27.25.152.174:5080 Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false Dialplan: sofia/external/03512332064@27.25.152.174:5080 parsing [public->outside_call] continue=true Dialplan: sofia/external/03512332064@27.25.152.174:5080 Absolute Condition [outside_call] Dialplan: sofia/external/03512332064@27.25.152.174:5080 Action set(outside_call=true) Dialplan: sofia/external/03512332064@27.25.152.174:5080 Action export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)}) Dialplan: sofia/external/03512332064@27.25.152.174:5080 parsing [public->call_debug] continue=true Dialplan: sofia/external/03512332064@27.25.152.174:5080 Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never Dialplan: sofia/external/03512332064@27.25.152.174:5080 parsing [public->public_extensions] continue=false Dialplan: sofia/external/03512332064@27.25.152.174:5080 Regex (FAIL) [public_extensions] destination_number(18888888888) =~ /^(10[01][0-9])$/ break=on-false Dialplan: sofia/external/03512332064@27.25.152.174:5080 parsing [public->public_conference_extensions] continue=false Dialplan: sofia/external/03512332064@27.25.152.174:5080 Regex (FAIL) [public_conference_extensions] destination_number(18888888888) =~ /^(3[5-8][01][0-9])$/ break=on-false Dialplan: sofia/external/03512332064@27.25.152.174:5080 parsing [public->outbound_via_gateway] continue=false Dialplan: sofia/external/03512332064@27.25.152.174:5080 Regex (PASS) [outbound_via_gateway] destination_number(18888888888) =~ /^(\d+)$/ break=on-false Dialplan: sofia/external/03512332064@27.25.152.174:5080 Action set(RECORD_APPEND=true) Dialplan: sofia/external/03512332064@27.25.152.174:5080 Action set(RECORD_FORCE=true) Dialplan: sofia/external/03512332064@27.25.152.174:5080 Action set(record_path=/home/recordings/${caller_id_number}_${destination_number}_${strftime(%Y%m%d-%H%M%S)}.wav) Dialplan: sofia/external/03512332064@27.25.152.174:5080 Action record_session(${record_path} stereo 16 raw wait) Dialplan: sofia/external/03512332064@27.25.152.174:5080 Action set(hangup_after_bridge=true) Dialplan: sofia/external/03512332064@27.25.152.174:5080 Action bridge(sofia/gateway/121_40_149_63_6086/18888888888) 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:281 (sofia/external/03512332064@27.25.152.174:5080) State Change CS_ROUTING -> CS_EXECUTE 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:640 (sofia/external/03512332064@27.25.152.174:5080) State ROUTING going to sleep 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:581 (sofia/external/03512332064@27.25.152.174:5080) Running State Change CS_EXECUTE (Cur 1 Tot 3) 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:647 (sofia/external/03512332064@27.25.152.174:5080) State EXECUTE 2025-07-21 08:49:44.384673 98.13% [DEBUG] mod_sofia.c:213 sofia/external/03512332064@27.25.152.174:5080 SOFIA EXECUTE 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_state_machine.c:323 sofia/external/03512332064@27.25.152.174:5080 Standard EXECUTE EXECUTE [depth=0] sofia/external/03512332064@27.25.152.174:5080 set(outside_call=true) 2025-07-21 08:49:44.384673 98.13% [DEBUG] mod_dptools.c:1671 SET sofia/external/03512332064@27.25.152.174:5080 [outside_call]=[true] EXECUTE [depth=0] sofia/external/03512332064@27.25.152.174:5080 export(RFC2822_DATE=Mon, 21 Jul 2025 08:49:44 +0800) 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [RFC2822_DATE]=[Mon, 21 Jul 2025 08:49:44 +0800] EXECUTE [depth=0] sofia/external/03512332064@27.25.152.174:5080 set(RECORD_APPEND=true) 2025-07-21 08:49:44.384673 98.13% [DEBUG] mod_dptools.c:1671 SET sofia/external/03512332064@27.25.152.174:5080 [RECORD_APPEND]=[true] EXECUTE [depth=0] sofia/external/03512332064@27.25.152.174:5080 set(RECORD_FORCE=true) 2025-07-21 08:49:44.384673 98.13% [DEBUG] mod_dptools.c:1671 SET sofia/external/03512332064@27.25.152.174:5080 [RECORD_FORCE]=[true] EXECUTE [depth=0] sofia/external/03512332064@27.25.152.174:5080 set(record_path=/home/recordings/03512332064_18888888888_20250721-084944.wav) 2025-07-21 08:49:44.384673 98.13% [DEBUG] mod_dptools.c:1671 SET sofia/external/03512332064@27.25.152.174:5080 [record_path]=[/home/recordings/03512332064_18888888888_20250721-084944.wav] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_session.c:2791 Application record_session Requires media! pre_answering channel sofia/external/03512332064@27.25.152.174:5080 2025-07-21 08:49:44.384673 98.13% [INFO] switch_core_session.c:2793 Sending early media 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[opus:116:48000:20:0:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[opus:116:48000:20:0:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[opus:116:48000:20:0:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1] 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5438 Set telephone-event payload to 101@8000 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:3731 Set Codec sofia/external/03512332064@27.25.152.174:5080 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_codec.c:111 sofia/external/03512332064@27.25.152.174:5080 Original read codec set to PCMU:0 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5798 Set telephone-event payload to 101@8000 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:5856 sofia/external/03512332064@27.25.152.174:5080 Set 2833 dtmf send payload to 101 recv payload to 101 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:8660 AUDIO RTP [sofia/external/03512332064@27.25.152.174:5080] 27.25.152.174 port 30250 -> 10.168.1.102 port 54352 codec: 0 ms: 20 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_rtp.c:4566 Starting timer [soft] 160 bytes per 20ms 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:8973 sofia/external/03512332064@27.25.152.174:5080 Set 2833 dtmf send payload to 101 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:8980 sofia/external/03512332064@27.25.152.174:5080 Set 2833 dtmf receive payload to 101 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:9003 sofia/external/03512332064@27.25.152.174:5080 Set rtp dtmf delay to 40 2025-07-21 08:49:44.384673 98.13% [NOTICE] sofia_media.c:90 Pre-Answer sofia/external/03512332064@27.25.152.174:5080! 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_channel.c:3585 (sofia/external/03512332064@27.25.152.174:5080) Callstate Change RINGING -> EARLY 2025-07-21 08:49:44.384673 98.13% [DEBUG] switch_core_media.c:8642 Audio params are unchanged for sofia/external/03512332064@27.25.152.174:5080. 2025-07-21 08:49:44.384673 98.13% [DEBUG] mod_sofia.c:2607 Ring SDP: v=0 o=FreeSWITCH 1753028734 1753028735 IN IP4 27.25.152.174 s=FreeSWITCH c=IN IP4 27.25.152.174 t=0 0 m=audio 30250 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 a=sendrecv EXECUTE [depth=0] sofia/external/03512332064@27.25.152.174:5080 record_session(/home/recordings/03512332064_18888888888_20250721-084944.wav stereo 16 raw wait) 2025-07-21 08:49:44.384673 98.13% [DEBUG] sofia.c:7493 Channel sofia/external/03512332064@27.25.152.174:5080 entering state [early][183] 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_ivr_async.c:1504 Record session sample rate: 8000 -> 8000 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_media_bug.c:976 Attaching BUG to sofia/external/03512332064@27.25.152.174:5080 EXECUTE [depth=0] sofia/external/03512332064@27.25.152.174:5080 set(hangup_after_bridge=true) 2025-07-21 08:49:44.404664 98.13% [DEBUG] mod_dptools.c:1671 SET sofia/external/03512332064@27.25.152.174:5080 [hangup_after_bridge]=[true] EXECUTE [depth=0] sofia/external/03512332064@27.25.152.174:5080 bridge(sofia/gateway/121_40_149_63_6086/18888888888) 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_channel.c:1288 sofia/external/03512332064@27.25.152.174:5080 EXPORTING[export_vars] [RFC2822_DATE]=[Mon, 21 Jul 2025 08:49:44 +0800] to event 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_ivr_originate.c:2301 Parsing global variables 2025-07-21 08:49:44.404664 98.13% [NOTICE] switch_channel.c:1142 New Channel sofia/external/18888888888 [1b2cb863-2db4-4aee-b16c-7c8d3807684c] 2025-07-21 08:49:44.404664 98.13% [DEBUG] mod_sofia.c:5110 (sofia/external/18888888888) State Change CS_NEW -> CS_INIT 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:581 (sofia/external/18888888888) Running State Change CS_INIT (Cur 2 Tot 4) 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:624 (sofia/external/18888888888) State INIT 2025-07-21 08:49:44.404664 98.13% [DEBUG] mod_sofia.c:97 sofia/external/18888888888 SOFIA INIT 2025-07-21 08:49:44.404664 98.13% [INFO] sofia_glue.c:1659 sofia/external/18888888888 sending invite call-id: (null) 2025-07-21 08:49:44.404664 98.13% [DEBUG] sofia_glue.c:1662 sofia/external/18888888888 sending invite version: 1.10.12-release git a88d069 2024-08-02 21:02:27Z 64bit Local SDP: v=0 o=FreeSWITCH 1753042422 1753042423 IN IP4 27.25.152.174 s=FreeSWITCH c=IN IP4 27.25.152.174 t=0 0 m=audio 16562 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:20 a=sendrecv 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:40 sofia/external/18888888888 Standard INIT 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:48 (sofia/external/18888888888) State Change CS_INIT -> CS_ROUTING 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:624 (sofia/external/18888888888) State INIT going to sleep 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:581 (sofia/external/18888888888) Running State Change CS_ROUTING (Cur 2 Tot 4) 2025-07-21 08:49:44.404664 98.13% [DEBUG] sofia.c:7493 Channel sofia/external/18888888888 entering state [calling][0] 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:640 (sofia/external/18888888888) State ROUTING 2025-07-21 08:49:44.404664 98.13% [DEBUG] mod_sofia.c:158 sofia/external/18888888888 SOFIA ROUTING 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_ivr_originate.c:67 (sofia/external/18888888888) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:640 (sofia/external/18888888888) State ROUTING going to sleep 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:581 (sofia/external/18888888888) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 4) 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:659 (sofia/external/18888888888) State CONSUME_MEDIA 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_core_state_machine.c:659 (sofia/external/18888888888) State CONSUME_MEDIA going to sleep 2025-07-21 08:49:44.404664 98.13% [DEBUG] switch_ivr_async.c:1778 No silence detection configured; assuming start of speech 2025-07-21 08:49:45.224698 98.13% [DEBUG] sofia.c:7493 Channel sofia/external/18888888888 entering state [proceeding][183] 2025-07-21 08:49:45.224698 98.13% [DEBUG] sofia.c:7503 Remote SDP: v=0 o=- 36520 36520 IN IP4 121.40.149.63 s=- c=IN IP4 121.40.149.63 t=0 0 m=audio 10004 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 2025-07-21 08:49:45.224698 98.13% [NOTICE] sofia.c:7506 Pre-Answer sofia/external/18888888888! 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_channel.c:3585 (sofia/external/18888888888) Callstate Change DOWN -> EARLY 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:5526 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1] 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:5588 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:5438 Set telephone-event payload to 101@8000 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:3731 Set Codec sofia/external/18888888888 PCMU/8000 20 ms 160 samples 64000 bits 1 channels 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_codec.c:111 sofia/external/18888888888 Original read codec set to PCMU:0 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:5798 Set telephone-event payload to 101@8000 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:5856 sofia/external/18888888888 Set 2833 dtmf send payload to 101 recv payload to 101 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:8660 AUDIO RTP [sofia/external/18888888888] 27.25.152.174 port 16562 -> 121.40.149.63 port 10004 codec: 0 ms: 20 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_rtp.c:4566 Starting timer [soft] 160 bytes per 20ms 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:8973 sofia/external/18888888888 Set 2833 dtmf send payload to 101 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:8980 sofia/external/18888888888 Set 2833 dtmf receive payload to 101 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_media.c:9003 sofia/external/18888888888 Set rtp dtmf delay to 40 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_ivr_originate.c:3913 Originate Resulted in Success: [sofia/external/18888888888] Peer UUID: 1b2cb863-2db4-4aee-b16c-7c8d3807684c 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_ivr_bridge.c:1791 (sofia/external/18888888888) State Change CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_state_machine.c:581 (sofia/external/18888888888) Running State Change CS_EXCHANGE_MEDIA (Cur 2 Tot 4) 2025-07-21 08:49:45.224698 98.13% [DEBUG] switch_core_state_machine.c:650 (sofia/external/18888888888) State EXCHANGE_MEDIA 2025-07-21 08:49:45.224698 98.13% [DEBUG] mod_sofia.c:672 SOFIA EXCHANGE_MEDIA 2025-07-21 08:50:03.824698 98.10% [DEBUG] sofia.c:7493 Channel sofia/external/18888888888 entering state [terminated][480] 2025-07-21 08:50:03.824698 98.10% [NOTICE] sofia.c:8736 Hangup sofia/external/18888888888 [CS_EXCHANGE_MEDIA] [NO_USER_RESPONSE] 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_ivr_bridge.c:825 sofia/external/18888888888 ending bridge by request from read function 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_ivr_bridge.c:911 BRIDGE THREAD DONE [sofia/external/18888888888] 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:650 (sofia/external/18888888888) State EXCHANGE_MEDIA going to sleep 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:581 (sofia/external/18888888888) Running State Change CS_HANGUP (Cur 2 Tot 4) 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:844 (sofia/external/18888888888) Callstate Change EARLY -> HANGUP 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:846 (sofia/external/18888888888) State HANGUP 2025-07-21 08:50:03.824698 98.10% [DEBUG] mod_sofia.c:469 Channel sofia/external/18888888888 hanging up, cause: NO_USER_RESPONSE 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:59 sofia/external/18888888888 Standard HANGUP, cause: NO_USER_RESPONSE 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:846 (sofia/external/18888888888) State HANGUP going to sleep 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:616 (sofia/external/18888888888) State Change CS_HANGUP -> CS_REPORTING 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:581 (sofia/external/18888888888) Running State Change CS_REPORTING (Cur 2 Tot 4) 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:932 (sofia/external/18888888888) State REPORTING 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:168 sofia/external/18888888888 Standard REPORTING, cause: NO_USER_RESPONSE 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:932 (sofia/external/18888888888) State REPORTING going to sleep 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:607 (sofia/external/18888888888) State Change CS_REPORTING -> CS_DESTROY 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_session.c:1744 Session 4 (sofia/external/18888888888) Locked, Waiting on external entities 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_ivr_bridge.c:911 BRIDGE THREAD DONE [sofia/external/03512332064@27.25.152.174:5080] 2025-07-21 08:50:03.824698 98.10% [NOTICE] switch_core_session.c:1762 Session 4 (sofia/external/18888888888) Ended 2025-07-21 08:50:03.824698 98.10% [NOTICE] switch_core_session.c:1766 Close Channel sofia/external/18888888888 [CS_DESTROY] 2025-07-21 08:50:03.824698 98.10% [NOTICE] switch_core_state_machine.c:382 sofia/external/03512332064@27.25.152.174:5080 has executed the last dialplan instruction, hanging up. 2025-07-21 08:50:03.824698 98.10% [NOTICE] switch_core_state_machine.c:384 Hangup sofia/external/03512332064@27.25.152.174:5080 [CS_EXECUTE] [NORMAL_CLEARING] 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:735 (sofia/external/18888888888) Running State Change CS_DESTROY (Cur 1 Tot 4) 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:745 (sofia/external/18888888888) State DESTROY 2025-07-21 08:50:03.824698 98.10% [DEBUG] mod_sofia.c:380 sofia/external/18888888888 SOFIA DESTROY 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:647 (sofia/external/03512332064@27.25.152.174:5080) State EXECUTE going to sleep 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:175 sofia/external/18888888888 Standard DESTROY 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:745 (sofia/external/18888888888) State DESTROY going to sleep 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:581 (sofia/external/03512332064@27.25.152.174:5080) Running State Change CS_HANGUP (Cur 1 Tot 4) 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_ivr_async.c:1597 Stop recording file /home/recordings/03512332064_18888888888_20250721-084944.wav 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_ivr_async.c:1678 Channel is hung up 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_media_bug.c:1326 Removing BUG from sofia/external/03512332064@27.25.152.174:5080 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:844 (sofia/external/03512332064@27.25.152.174:5080) Callstate Change EARLY -> HANGUP 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:846 (sofia/external/03512332064@27.25.152.174:5080) State HANGUP 2025-07-21 08:50:03.824698 98.10% [DEBUG] mod_sofia.c:463 sofia/external/03512332064@27.25.152.174:5080 Overriding SIP cause 480 with 480 from the other leg 2025-07-21 08:50:03.824698 98.10% [DEBUG] mod_sofia.c:469 Channel sofia/external/03512332064@27.25.152.174:5080 hanging up, cause: NORMAL_CLEARING 2025-07-21 08:50:03.824698 98.10% [DEBUG] mod_sofia.c:614 Responding to INVITE with: 480 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:59 sofia/external/03512332064@27.25.152.174:5080 Standard HANGUP, cause: NORMAL_CLEARING 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:846 (sofia/external/03512332064@27.25.152.174:5080) State HANGUP going to sleep 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:616 (sofia/external/03512332064@27.25.152.174:5080) State Change CS_HANGUP -> CS_REPORTING 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:581 (sofia/external/03512332064@27.25.152.174:5080) Running State Change CS_REPORTING (Cur 1 Tot 4) 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:932 (sofia/external/03512332064@27.25.152.174:5080) State REPORTING 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:168 sofia/external/03512332064@27.25.152.174:5080 Standard REPORTING, cause: NORMAL_CLEARING 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:932 (sofia/external/03512332064@27.25.152.174:5080) State REPORTING going to sleep 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:607 (sofia/external/03512332064@27.25.152.174:5080) State Change CS_REPORTING -> CS_DESTROY 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_session.c:1744 Session 3 (sofia/external/03512332064@27.25.152.174:5080) Locked, Waiting on external entities 2025-07-21 08:50:03.824698 98.10% [NOTICE] switch_core_session.c:1762 Session 3 (sofia/external/03512332064@27.25.152.174:5080) Ended 2025-07-21 08:50:03.824698 98.10% [NOTICE] switch_core_session.c:1766 Close Channel sofia/external/03512332064@27.25.152.174:5080 [CS_DESTROY] 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:735 (sofia/external/03512332064@27.25.152.174:5080) Running State Change CS_DESTROY (Cur 0 Tot 4) 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:745 (sofia/external/03512332064@27.25.152.174:5080) State DESTROY 2025-07-21 08:50:03.824698 98.10% [DEBUG] mod_sofia.c:380 sofia/external/03512332064@27.25.152.174:5080 SOFIA DESTROY 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:175 sofia/external/03512332064@27.25.152.174:5080 Standard DESTROY 2025-07-21 08:50:03.824698 98.10% [DEBUG] switch_core_state_machine.c:745 (sofia/external/03512332064@27.25.152.174:5080) State DESTROY going to sleep freeswitch@localhost.localdomain> 拨打18888888888的日志如上 然后拨号计划里面的内容如下<include> <include> <extension name="outbound_via_gateway"> <condition field="destination_number" expression="^(\d+)$"> <!-- 设置强制录音参数 --> <action application="set" data="RECORD_APPEND=true"/> <action application="set" data="RECORD_FORCE=true"/> <!-- 录音文件路径 --> <action application="set" data="record_path=/home/recordings/${caller_id_number}_${destination_number}_${strftime(%Y%m%d-%H%M%S)}.wav"/> <!-- 启动录音(增加raw和wait参数) --> <action application="record_session" data="${record_path} stereo 16 raw wait"/> <!-- 呼叫参数 --> <action application="set" data="hangup_after_bridge=true"/> <action application="bridge" data="sofia/gateway/121_40_149_63_6086/$1"/> </condition> </extension> </include> 但是最后生成的录音文件是有300kb的 但是是个没有声音的文件 再拨打电话时有嘟嘟嘟的用户正忙的声音但是录音文件没有路上
最新发布
07-22
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值