[Freeswitch-users] how to call asterisk extension from freeswitch using mod_event_socket.
Aqs Younas
aqsyounas at gmail.com
Fri Nov 7 17:48:36 MSK 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141107/005318ab/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list