<br><br><div class="gmail_quote">On Fri, Apr 8, 2011 at 1:08 PM, Marc de Corny <span dir="ltr">&lt;<a href="mailto:marcdecorny@gmail.com">marcdecorny@gmail.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 all<div><br></div><div>got an issue with ESL I cannot figure out.</div><div><br></div><div>I have installed enabled the event socket on the Freeswitch, and it works locally on the server via PHP</div><div><br></div><div>

I have a remote server were I compiled the ESL.so and did the php-install. It is a standard CentOS install with apache.</div><div>when I type into the command line :     php test.php   ( the standard test script that is api status ) I get the correct result.</div>

<div>when I execute the same script from the browser on the remote server I get an error on the getBody command.</div><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><b>Fatal error</b></span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">: Call to a member function getBody() on a non-object in</span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"> </span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><b>/var/www/html/test.php</b></span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"> </span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium">on line</span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"> </span><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><b>9</b></span></div>

<div><br></div></blockquote><div>This is the exact same error that occurs when the script fails to connect to the FS event socket, so something must be different when you are calling this from a script. Can you confirm that the script is actually trying to connect to the FreeSWITCH server? I don&#39;t know much about debugging PHP, but at the very least you could do a tcpdump on the server running the php script and confirm that the ESL connection is being attempted, whether it is successful, etc. </div>
<div><br></div><div>-MC</div></div>