How to relay DTMF during Early Media (Before Call Answered) ?
Hello I have been trying to relay DTMF in Early Media (Before Call Answered), I have tried the following option. (Ref<http://freeswitch-users.2379917.n2.nabble.com/start-dtmf-generate-during-early-media-td6468121.html>) <extension name="other"> <condition> <action application="export" data="nolocal:absolute_codec_string=AMR-WB,AMR"/> <action application="export" data="nolocal:execute_on_media=start_dtmf_generate> <action application="set" data="uuid_bridge_continue_on_cancel=true"/> <action application="set" data="bridge_early_media=true"/> <action application="set" data="continue_on_fail=true"/> <action application="set" data="hangup_after_bridge=false"/> <action application="set" data="effective_caller_id_number=${sip_from_user}"/> <action application="set" data="hold_music=/etc/freeswitch/dialplan/Call_Hold.mp3"/> <action application="set" data="ringback=%(2000,4000,440.0,480.0)"/> <action application="set" data="limit_ignore_transfer=false" /> <action application="bridge" data="sofia/internal/${destination_number}@${loadbalancer}"/> <action application="set" data="sip_copy_multipart=false"/> <action application="log" data="1 B-leg hangup cause: ${last_bridge_hangup_cause}"/> <action application="set" data="sip_h_X-RBT-Enabled=No"/> <action application="transfer" data="${last_bridge_hangup_cause}"/> </condition> </extension> but it didn't generate any DTMF in early media and it caused an issue of Robotic sound in transcoding from AMR-WB to G729 as well. OS: DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS" NAME="Ubuntu" VERSION="18.04.2 LTS (Bionic Beaver)" Container: PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" Freeswitch: FreeSWITCH Version 1.9.0-n20180314T133342Z-1~jessie+1+git~20180305T173609Z~dd0bb0e331~64bit (-n20180314T133342Z-1~jessie+1git dd0bb0e 2018-03-05 17:36:09Z 64bit) PS: DTMF is working fine once the call is answered. Regards Hamid R. Hashmi
participants (1)
-
Hamid Hashmi