[Freeswitch-users] Playing file using lua before bridge

John Nash john.nash778 at gmail.com
Sat Jan 24 07:52:06 MSK 2015


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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150124/862ee73f/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list