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(&#39;ESL.php&#39;);</b></div><div><b><br></b></div><div><b>$command = &quot;originate {ignore_early_media=true,origination_caller_id_number=1111}sofia/internal/1000%192.168.0.21 &amp;park()&quot;;</b></div>
<div><b>$sock = new ESLconnection(&#39;localhost&#39;, &#39;8021&#39;, &#39;ClueCon&#39;);</b></div><div><b>if($sock-&gt;connected())  $result = &quot;Connected&quot;;       else    $result = &quot;unable to connect&quot;;</b></div>
<div><b><br></b></div><div><b>echo &quot;This is a message: &quot;.$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> This is a message: Connected </b>but when i hit the page from browser then output is <span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><b>This is a message: unable to connect.</b></span></div>
<div><span style="font-family:&#39;Times New Roman&#39;;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:&#39;Times New Roman&#39;;font-size:medium">and also check after restart appache and even reboot my machine</span></div>
<div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">i am using <b>CentOS 6.3 </b>and freeswitch version is<b> </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 event_socket.conf and 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>