[Freeswitch-users] how to call asterisk extension from freeswitch using mod_event_socket.

Aqs Younas aqsyounas at gmail.com
Fri Nov 7 19:24:27 MSK 2014


Thanks for your reply. Actually i figured in out using API with originate.

On 7 November 2014 20:45, Michael Collins <msc at freeswitch.org> wrote:

> 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 at 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 at 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 at 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 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
>>
>
>
> _________________________________________________________________________
> 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/20141107/aa0b490c/attachment.html 


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