Hi Michael,

Using transfer seems to do the trick:

session:setAutoHangup(false);
session:transfer("7777", "XML", "default");

Any downsides to this?
Neil

On Thu, Feb 17, 2011 at 1:48 PM, Neil Patel <neilp@cs.stanford.edu> wrote:
Can I use this from within a live outbound (FS -> 123456789) call initiated through a lua app? Once this command is executed, what happens to that original call?


On Thu, Feb 17, 2011 at 1:26 AM, Michael Collins <msc@freeswitch.org> wrote:
Can you use originate?

originate sofia/gateway/gwname/123456789 7777

that will create the outbound call to the destination number (1233456789) and then bridge it to 7777. 

-MC

On Wed, Feb 16, 2011 at 10:33 AM, Neil Patel <neilp@cs.stanford.edu> wrote:
Hi Folks, newbie question:

I have a simple dialplan that takes calls to an extension and executes a lua app:

<extension name="incoming">
        <condition field="destination_number" expression="^7777$">
            <action application="lua" data="lua/app.lua" />
        </condition>
 </extension>

From the same extension I am initiating calls from FS to endpoints and executing another lua app. What I want to do is connect (bridge?) those outbound calls to app.lua. From FS perspective this call should now look like it was initiated by the caller to 7777.

Is this what call bridging is? What commands/wiki page should I be looking at to do this?

Thanks in advance,
Neil


_______________________________________________
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



_______________________________________________
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