<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div>Take a look at this&nbsp;<a href="http://wiki.freeswitch.org/wiki/Event_Socket_Library#Installation">http://wiki.freeswitch.org/wiki/Event_Socket_Library#Installation</a> and once compiled, install it manually or make phpmod-install. Make sure ESL.so is loaded in your php.ini<br><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br class="Apple-interchange-newline">Thanks,</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">--</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Muhammad Naseer Bhatti</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On Oct 10, 2012, at 9:02 PM, Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">It comes with a .so file that is loaded, I doubt you can use it from your browser.<div><br><br><div class="gmail_quote">On Wed, Oct 10, 2012 at 12:59 PM, Shahzad Bhatti <span dir="ltr">&lt;<a href="mailto:shahzad.bhatti@g-r-v.com" target="_blank">shahzad.bhatti@g-r-v.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everybody,<div><br></div><div>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:</div>
<div><br></div><div><b>test.php</b></div><div><b><br>
</b></div><div><div><b>&lt;?php</b></div><div><b><br></b></div><div><b>require_once('ESL.php');</b></div><div><b><br></b></div><div><b>$command = "originate {ignore_early_media=true,origination_caller_id_number=1111}sofia/internal/1000%192.168.0.21 &amp;park()";</b></div>

<div><b>$sock = new ESLconnection('localhost', '8021', 'ClueCon');</b></div><div><b>if($sock-&gt;connected()) &nbsp;$result = "Connected"; &nbsp; &nbsp; &nbsp; else &nbsp; &nbsp;$result = "unable to connect";</b></div>

<div><b><br></b></div><div><b>echo "This is a message: ".$result;</b></div></div><div><b><br></b></div><div><b>?&gt;</b></div><div><b><br></b></div><div>when i execute the above script from console it output<b>&nbsp;This is a message: Connected </b>but when i hit the page from browser then output is&nbsp;<span style="font-family:'Times New Roman';font-size:medium"><b>This is a message: unable to connect.</b></span></div>

<div><span style="font-family:'Times New Roman';font-size:medium">i also try <b>chmod 777 test.php </b>to ensure that there is no permission issue and also use host as 0.0.0.0 , 127.0.0.1.</span></div><div><span style="font-family:'Times New Roman';font-size:medium">and also check after restart appache and even reboot my machine</span></div>

<div><span style="font-family:'Times New Roman';font-size:medium">i am using <b>CentOS 6.3 </b>and freeswitch version is<b>&nbsp;</b></span><font face="Times New Roman" size="3"><b>FreeSWITCH Version 1.3.0+git~20121004T132926Z~3d57cbda98 (git 3d57cbd 2012-10-04 13:29:26Z)</b></font></div>

<div><font face="Times New Roman" size="3">and also view the appache error log and freeswitch log but not find any thing in it regarding this problem.</font></div><div><font face="Times New Roman" size="3">my&nbsp;event_socket.conf and&nbsp;acl.conf is default no change in it.</font></div>

<div><font face="Times New Roman" size="3"><br></font></div><div><font face="Times New Roman" size="3">help me to know why this is not working, and your response is appreciated.</font></div><div><font face="Times New Roman" size="3"><br>

</font></div><div><font face="Times New Roman" size="3">Regards,</font></div><div><font face="Times New Roman" size="3"><br></font></div><div><font face="Times New Roman" size="3">Shahzad Bhtti.</font></div><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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.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://wiki.freeswitch.org/" target="_blank">http://wiki.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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net/">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></body></html>