<div dir="ltr">Thanks for your reply. Actually i figured in out using API with originate.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 7 November 2014 20:45, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>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 &quot;originate&quot; command on the wiki and I think you&#39;ll be in business.<br><br></div>-MC<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Nov 7, 2014 at 6:48 AM, Aqs Younas <span dir="ltr">&lt;<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div>I want to call asterisk extension from freeswitch using ESL.<br>Here is my python file.<br><br>#!/usr/bin/env python<br><br>import string<br>import sys<br><br>from ESL import *<br><br>con = ESLconnection(&quot;localhost&quot;,&quot;8021&quot;,&quot;ClueCon&quot;)<br>#are we connected?<br><br>if con.connected:<br>  con.execute(&quot;bridge&quot;,&quot;sofia/external/<a href="mailto:555@192.168.1.44" target="_blank">555@192.168.1.44</a>&quot;);<br><br></div>When a run this it does not generate call over asterisk extension.<br></div>But when i do this using dialplan it works.Here is my default.xml<br><br>&lt;include&gt;<br>  &lt;context name=&quot;default&quot;&gt;<br>   &lt;extension name=&quot;esl&quot;&gt;<br>      &lt;condition&gt;<br>        &lt;action application=&quot;log&quot; data=&quot;yes i did it&quot;/&gt;<br>        &lt;action application=&quot;bridge&quot; data=&quot;sofia/external/<a href="mailto:555@192.168.1.44" target="_blank">555@192.168.1.44</a>&quot;/&gt;<br>    &lt;/condition&gt;<br>   &lt;/extension&gt;<br>&lt;/context&gt;<br></div>&lt;/include&gt;<br><br></div><b>But i want to do this using mod_event_socket.</b><br></div><br>Your help would be much appreciated.<br></div>Thanks<br></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>