The bridge app requires an existing call leg, i.e. the A leg, to connect to the new leg, i.e. the B leg. Also, the bridge app is just that - a dialplan application. It sounds like you need to use an API, that is, a command that you can use at fs_cli. Look up the "originate" command on the wiki and I think you'll be in business.

-MC

On Fri, Nov 7, 2014 at 6:48 AM, Aqs Younas <aqsyounas@gmail.com> wrote:
I want to call asterisk extension from freeswitch using ESL.
Here is my python file.

#!/usr/bin/env python

import string
import sys

from ESL import *

con = ESLconnection("localhost","8021","ClueCon")
#are we connected?

if con.connected:
  con.execute("bridge","sofia/external/555@192.168.1.44");

When a run this it does not generate call over asterisk extension.
But when i do this using dialplan it works.Here is my default.xml

<include>
  <context name="default">
   <extension name="esl">
      <condition>
        <action application="log" data="yes i did it"/>
        <action application="bridge" data="sofia/external/555@192.168.1.44"/>
    </condition>
   </extension>
</context>
</include>

But i want to do this using mod_event_socket.

Your help would be much appreciated.
Thanks

_________________________________________________________________________
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