Playing file using lua before bridge
I am trying to play some native files (Pre encoded) using lua script just after call is setup using Bridge (But before any answer). I need to use "Proxy_Media" (Want media to go through freeswitch but no codec translation). I tried using "bridge_pre_execute_aleg_app" but I do not hear sound files being played (Do not see any error message also). I have already tested lua script in some other test extension and it works fine. <extension name="main_route"> <condition field="destination_number" expression="^rb-(.+)$"> <action application="log" data="INFO progressing call..."/> <action application="set" data="proxy_media=true"/> <action application="set" data="bridge_pre_execute_aleg_app=lua"/> <action application="set" data="bridge_pre_execute_aleg_data=tt.lua ${credit_time}"/> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="execute_on_answer=sched_hangup +${credit_time}" /> <action application="bridge" data="sofia/$${domain}/${regex(${sip_req_uri}|^kb-(.+)$|%1)};fs_path=sip:${sip_received_ip}:${sip_received_port}"/> </condition> </extension>
Recommend you pastebin a full debug log of a call that exhibits this behavior. -MC On Fri, Jan 23, 2015 at 8:52 PM, John Nash <john.nash778@gmail.com> wrote:
I am trying to play some native files (Pre encoded) using lua script just after call is setup using Bridge (But before any answer). I need to use "Proxy_Media" (Want media to go through freeswitch but no codec translation). I tried using "bridge_pre_execute_aleg_app" but I do not hear sound files being played (Do not see any error message also). I have already tested lua script in some other test extension and it works fine.
<extension name="main_route"> <condition field="destination_number" expression="^rb-(.+)$"> <action application="log" data="INFO progressing call..."/> <action application="set" data="proxy_media=true"/> <action application="set" data="bridge_pre_execute_aleg_app=lua"/> <action application="set" data="bridge_pre_execute_aleg_data=tt.lua ${credit_time}"/> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="execute_on_answer=sched_hangup +${credit_time}" /> <action application="bridge" data="sofia/$${domain}/${regex(${sip_req_uri}|^kb-(.+)$|%1)};fs_path=sip:${sip_received_ip}:${sip_received_port}"/> </condition> </extension>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
John Nash
-
Michael Collins