[Freeswitch-users] esl is not working in browser

Muhammad Naseer Bhatti nbhatti at gmail.com
Wed Oct 10 23:53:01 MSD 2012


Take a look at this http://wiki.freeswitch.org/wiki/Event_Socket_Library#Installation and once compiled, install it manually or make phpmod-install. Make sure ESL.so is loaded in your php.ini

Thanks,
--
Muhammad Naseer Bhatti



On Oct 10, 2012, at 9:02 PM, Anthony Minessale <anthony.minessale at gmail.com> wrote:

> It comes with a .so file that is loaded, I doubt you can use it from your browser.
> 
> 
> On Wed, Oct 10, 2012 at 12:59 PM, Shahzad Bhatti <shahzad.bhatti at g-r-v.com> wrote:
> Hi Everybody,
> 
> i am trying to use esl through my browser but unable to while my same script is running from console my test.php code is as follows:
> 
> test.php
> 
> <?php
> 
> require_once('ESL.php');
> 
> $command = "originate {ignore_early_media=true,origination_caller_id_number=1111}sofia/internal/1000%192.168.0.21 &park()";
> $sock = new ESLconnection('localhost', '8021', 'ClueCon');
> if($sock->connected())  $result = "Connected";       else    $result = "unable to connect";
> 
> echo "This is a message: ".$result;
> 
> ?>
> 
> when i execute the above script from console it output This is a message: Connected but when i hit the page from browser then output is This is a message: unable to connect.
> i also try chmod 777 test.php to ensure that there is no permission issue and also use host as 0.0.0.0 , 127.0.0.1.
> and also check after restart appache and even reboot my machine
> i am using CentOS 6.3 and freeswitch version is FreeSWITCH Version 1.3.0+git~20121004T132926Z~3d57cbda98 (git 3d57cbd 2012-10-04 13:29:26Z)
> and also view the appache error log and freeswitch log but not find any thing in it regarding this problem.
> my event_socket.conf and acl.conf is default no change in it.
> 
> help me to know why this is not working, and your response is appreciated.
> 
> Regards,
> 
> Shahzad Bhtti.
> 
> 
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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
> 
> 
> 
> 
> -- 
> Anthony Minessale II
> 
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
> 
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
> 
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> googletalk:conf+888 at conference.freeswitch.org
> pstn:+19193869900
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
> 
> 
> 
> 
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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/20121010/bad71e35/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list