[Freeswitch-users] Playing file using lua before bridge
Michael Collins
msc at freeswitch.org
Mon Jan 26 02:27:19 MSK 2015
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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150125/f9643b42/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list