Problem with pre-answer
Hello Freeswitch Users, I’ve got a problem with playing announcements in FreeSWITCH last stable Version 1.2.8. To be precise, when using ‘session::streamFile’ in a lua-script, I get the following error response: [ERR] sofia_glue.c:3015 No audio codec available The error only occurs when I set <action application="pre_answer"/> in the dialplan. On the other hand, if I do use <action application="answer"/> instead, a codeclist is generated and the announcement is played. The sip-profile has the following settings: <param name="global-codec-prefs" value="$${global_codec_prefs}"/> <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/> <param name="outbound-codec-prefs" value="$${global_codec_prefs}"/> <param name="early-media-override" value="on-progress"/> <param name="inbound-codec-negotiation" value="generous"/> vars.xml: <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=G722,PCMU,PCMA,GSM"/> <X-PRE-PROCESS cmd="set" data="inbound_codec_prefs=G722,PCMU,PCMA,GSM"/> Furthermore the following variables are set int the dialplan: <action application="set" data="ignore_early_media=false"/> <action application="set" data="bypass_media=false"/> <action application="set" data="proxy_media=false"/> <action application="set" data="instant_ringback=false"/> <action application="set" data="execute_on_answer=sched_hangup +10800 alloted_timeout"/> <action application="set" data="call_timeout=120"/> <action application="set" data="uuid_bridge_continue_on_cancel=true"/> <action application="set" data="hangup_after_bridge=false"/> <action application="set" data="continue_on_fail=true"/> <action application="set_zombie_exec"/> Compairing the logfiles of an ‘answered’ with an ‘pre-answered’ call I found the following Variables are NOT set in the ‘pre-answered’ Version: Channel-Read-Codec-Name: [PCMA] Channel-Read-Codec-Rate: [8000] Channel-Read-Codec-Bit-Rate: [64000] Channel-Write-Codec-Name: [PCMA] Channel-Write-Codec-Rate: [8000] Channel-Write-Codec-Bit-Rate: [64000] I’ve tried all the above mentioned combinations that I could think of, but without any luck. Anyone got a bright idea what actually is the matter and would kindly help me out? Regards, Sven
participants (1)
-
svb